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.12.tar.gz
(51.6 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.12.tar.gz.
File metadata
- Download URL: svo_client-2.2.12.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96515f1f4552aa6a7f46a7ca3027c0cb83d90a5d338a8086eaf6b437082ad1ea
|
|
| MD5 |
d1011ca9abcba7c8bebe110bb980ab97
|
|
| BLAKE2b-256 |
96d3c58539db75d871619063b82eebad798a0966586d68dbdfb345836479ff42
|
File details
Details for the file svo_client-2.2.12-py3-none-any.whl.
File metadata
- Download URL: svo_client-2.2.12-py3-none-any.whl
- Upload date:
- Size: 35.2 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 |
23aa027d57f7fab800858f570abec56138698c3279f3b8d78c3dc06866ec7057
|
|
| MD5 |
2c80300c561eb90f702c66b88d4e2d2a
|
|
| BLAKE2b-256 |
996ed0bbc8f3a3b5656fee45c6dafec6aa139cc05ee119177a4f734becb992ea
|