Metadata-Version: 2.3
Name: triggerware
Version: 1.0.0
Summary: Async Python SDK for Triggerware
Requires-Dist: tw2-jsonrpc
Requires-Dist: pyyaml
Requires-Dist: tw2-jsonrpc[websockets] ; extra == 'websockets'
Requires-Python: >=3.11
Provides-Extra: websockets
Description-Content-Type: text/markdown

# Triggerware Python SDK

Async Python SDK for Triggerware.

Install with the `websockets` extra when using cloud/WebSocket connections:

```sh
uv add "triggerware[websockets]"
```

```python
from triggerware import TriggerwareClient

client = await TriggerwareClient.connect_tcp("localhost:5221")

health = await client.system.health()
cursor = await client.cursors.open(sql="select * from my_connector")

async for row in cursor:
    print(row)
```

WebSocket connections authorize immediately with the provided API key:

```python
client = await TriggerwareClient.connect_ws("wss://example.com/rpc", "your-api-key-here")
```
