Async client for SVO semantic chunker microservice.
Project description
svo-client
Асинхронный Python-клиент для SVO Semantic Chunker microservice.
Установка
pip install svo-client
Пример использования
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())
Документация
API клиента
Класс ChunkerClient
Инициализация:
client = ChunkerClient(url="http://localhost", port=8009, timeout=60)
url— адрес сервиса (по умолчанию http://localhost)port— порт (по умолчанию 8009)timeout— таймаут HTTP-запросов в секундах (по умолчанию 60)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svo_client-2.2.9.tar.gz
(50.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file svo_client-2.2.9.tar.gz.
File metadata
- Download URL: svo_client-2.2.9.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa0058d862703dede3f5ca557104924e3a17d0c77e9f9be58172eddb0e57d87f
|
|
| MD5 |
b688b6a694a48406894722ca5febb1d5
|
|
| BLAKE2b-256 |
80e15236f44ae0bd36b3a02160abaa4fb8fd068a1f469938a9e0fef990d3833e
|
File details
Details for the file svo_client-2.2.9-py3-none-any.whl.
File metadata
- Download URL: svo_client-2.2.9-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec293d4f4d4d521cee4d442ff7a0e5b18142bb2e5005f9b580fb217f089b7be7
|
|
| MD5 |
219f9ef603a15f482137d5c9674c7888
|
|
| BLAKE2b-256 |
a16fa806f2166eb3aa874111614b1c414364a2eec2ac6f3cfa3a7f5733096e59
|