Metadata-Version: 2.1
Name: moysklad-api-client
Version: 0.1.0
Summary: Lightweight MoySklad API client built on httpx with retries
License: Apache-2.0
Keywords: moysklad
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Dist: httpx (>=0.28.1,<0.29.0)
Description-Content-Type: text/markdown

# moysklad-api-client

Лёгкий асинхронный клиент для работы с MoySklad API на базе httpx.
При ответе 429,503 происходит ретрай с exponential backoff.
## Установка
pip
```bash
pip install moysklad-api-client
```
poetry
```bash
poetry add moysklad-api-client
```
## Пример
Работа через контекстный менеджер
```python
import asyncio
from moysklad_api_client import APIClient, Entity

async def main():
    async with APIClient() as client:
        response = await client.get(Entity.PRODUCT, api_key="your_token")
        print(response.status_code, response.json())

asyncio.run(main())
```
Работа через экземпляр класса
```python
async def main():
    client = APIClient()
    response = await client.get(
        entity_name='customerorder',
        api_key='api_key',
        params={'limit': 1, 'offset': 100}

    )
    return response.json() 

asyncio.run(main())
```
