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.1.0.tar.gz
(14.0 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.1.0.tar.gz.
File metadata
- Download URL: svo_client-2.1.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a762a5e688d747833aab9ee478c4e1c022dc9c1916ca5f45e5e3edfd4f736a
|
|
| MD5 |
aec3e728f8ad68ed199aface39412c83
|
|
| BLAKE2b-256 |
1fab01684d0769fde30ca38daeb3f73d57c59e3ac84e93862d7be7b9d20e0fe9
|
File details
Details for the file svo_client-2.1.0-py3-none-any.whl.
File metadata
- Download URL: svo_client-2.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 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 |
34e8bc3dbcc24400735fa3705e70229262954afc455301f50d32e25f51955f35
|
|
| MD5 |
f331a5a1a8075863382bcdab3f2fa3c7
|
|
| BLAKE2b-256 |
bd2cdf98d5f2d812c348a296fba3c8f966aab53a63a794f0dd6d465f9aed6b7b
|