Metadata-Version: 2.4
Name: togolm
Version: 0.1.0
Summary: Minimal Python client for the TogoLM API
Project-URL: Repository, https://github.com/omarfarouk228/togolm
License: MIT
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27
Description-Content-Type: text/markdown

# togolm

Minimal Python client for the [TogoLM API](../../docs/api-reference.md).

## Install

```bash
pip install togolm
```

## Usage

```python
from togolm import TogoLM

client = TogoLM(api_key="your_api_key")

result = client.query("Comment créer une entreprise au Togo ?")
print(result["answer"], result["sources"])
```

### Streaming

```python
for event in client.query_stream("Comment créer une entreprise au Togo ?"):
    if event["type"] == "chunk":
        print(event["text"], end="")
    if event["type"] == "sources":
        print("Sources:", event["sources"])
```

Omit `api_key` for public, rate-limited access. See the [API reference](../../docs/api-reference.md) for rate limits and full endpoint documentation.
