Metadata-Version: 2.1
Name: chiefpay
Version: 1.2.0
Summary: ChiefPay Python SDK
Home-page: https://github.com/ChiefPay/ChiefPay.py
Author: nelsn
Author-email: egor.larrr@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohappyeyeballs>=2.4.6
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: aiosignal>=1.3.2
Requires-Dist: annotated-types>=0.7.0
Requires-Dist: attrs>=25.1.0
Requires-Dist: bidict>=0.23.1
Requires-Dist: certifi>=2025.1.31
Requires-Dist: charset-normalizer>=3.4.1
Requires-Dist: frozenlist>=1.5.0
Requires-Dist: h11>=0.14.0
Requires-Dist: idna>=3.10
Requires-Dist: multidict>=6.1.0
Requires-Dist: propcache>=0.2.1
Requires-Dist: pydantic>=2.4.1
Requires-Dist: pydantic-core>=2.14.6
Requires-Dist: python-engineio>=4.11.2
Requires-Dist: python-socketio>=5.12.1
Requires-Dist: requests>=2.32.3
Requires-Dist: simple-websocket>=1.1.0
Requires-Dist: typing-extensions>=4.12.2
Requires-Dist: urllib3>=2.3.0
Requires-Dist: websocket-client>=1.8.0
Requires-Dist: wsproto>=1.2.0
Requires-Dist: yarl>=1.18.3

# ChiefPay SDK

This is the official Python SDK for interacting with the ChiefPay payment system.

## Installation

```bash
pip install chiefpay
```

## Usage

### Synchronous Client

```python
from chiefpay import Client

client = Client(api_key="your_api_key")
rates = client.get_rates()
print("Exchange rates:", rates)
```
### Asynchronous Client

```python
import asyncio
from chiefpay import AsyncClient

async def main():
    client = AsyncClient(api_key="your_api_key")
    rates = await client.get_rates()
    print("Exchange rates:", rates)

asyncio.run(main())
```

### WebSocket Client

```python
from chiefpay import SocketClient

def on_notification(data):
    print("New notification:", data)

with SocketClient(api_key="your_api_key") as client:
    client.set_on_notification(on_notification)
    input("Press Enter to exit...")
```
### Asynchronous WebSocket Client

```python
import asyncio
from chiefpay import AsyncSocketClient

async def on_notification(data):
    print("New notification:", data)

async def main():
    async with AsyncSocketClient(api_key="your_api_key") as client:
        client.set_on_notification(on_notification)
        print("Asynchronous WebSocket client started. Waiting for events...")
        await asyncio.sleep(60)

asyncio.run(main())
```
## Examples

For comprehensive examples, including advanced use cases, check out the examples directory
