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.15.tar.gz
(53.2 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.15.tar.gz.
File metadata
- Download URL: svo_client-2.2.15.tar.gz
- Upload date:
- Size: 53.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b61757737b0c5d123e3cbc273b7929c3cd8341a8849b4691203365fad09591
|
|
| MD5 |
41ced1fb16fc6f2b4982dd9358b15753
|
|
| BLAKE2b-256 |
b3923c2b603bb968a7101dddcacdbd6a8e4488ed282861e00855aa21a0082ef3
|
File details
Details for the file svo_client-2.2.15-py3-none-any.whl.
File metadata
- Download URL: svo_client-2.2.15-py3-none-any.whl
- Upload date:
- Size: 34.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 |
88b5b8588303ab74e73260152594dd91e3c3e0271369b9ec507e9ecc18d7f537
|
|
| MD5 |
00b54cc35e23710b78ca4cf1ea45c6c8
|
|
| BLAKE2b-256 |
f678652138ef745b1272c5e47fa111916687efa714d9d33ec5095eb32093f156
|