Metadata-Version: 2.4
Name: svo-client
Version: 2.1.1
Summary: Async client for SVO semantic chunker microservice.
Home-page: https://github.com/your_org/svo_client
Author: Vasiliy Zdanovskiy
Author-email: vasilyvz@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
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: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.0.0
Requires-Dist: chunk_metadata_adapter>=3.2.0
Requires-Dist: mcp-proxy-adapter>=0.1.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# svo-client

Асинхронный Python-клиент для SVO Semantic Chunker microservice.

## Установка

```bash
pip install svo-client
```

## Пример использования

```python
from svo_client.chunker_client import ChunkerClient
import asyncio

async def main():
    async with ChunkerClient(timeout=60) as client:
        chunks = await client.chunk_text("Your text here.")
        print(client.reconstruct_text(chunks))

asyncio.run(main())
```

## Документация
- [OpenAPI schema](docs/openapi.json)
- [Примеры и тесты](tests/test_chunker_client.py)

## API клиента

### Класс `ChunkerClient`

**Инициализация:**
```python
client = ChunkerClient(url="http://localhost", port=8009, timeout=60)
```
- `url` — адрес сервиса (по умолчанию http://localhost)
- `port` — порт (по умолчанию 8009)
- `timeout` — таймаут HTTP-запросов в секундах (по умолчанию 60)
