Metadata-Version: 2.1
Name: opperai
Version: 0.0.5
Summary: Opper Python client
Project-URL: Homepage, https://opper.ai
Project-URL: Documentation, https://docs.opper.ai
Project-URL: Platform, https://platform.opper.ai
Author-email: Opper <opper@opper.ai>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Dist: httpx
Requires-Dist: httpx-sse
Requires-Dist: pydantic
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Description-Content-Type: text/markdown

# Opper Python SDK

## Install

```bash
pip install opperai
```

## Functions

To call a function you created at [https://platform.opper.ai](https://platform.opper.ai) you can use the following code:


```python
from opperai import Client
from opperai.types import ChatPayload, Message

# Use AsyncClient for async operations
client = Client(api_key="your-api-key") 
response = client.functions.chat("your-function-path", 
 ChatPayload(messages=[Message(role="user", content="hello")])
)

print(response)

```

