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.1.tar.gz
(49.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.2.1.tar.gz.
File metadata
- Download URL: svo_client-2.2.1.tar.gz
- Upload date:
- Size: 49.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 |
ef1c749cc61196575ccf03bc6be0647a0a67b15b5a5a336d0b3c5e704c88c5f1
|
|
| MD5 |
e092a78d3e4900876f6c6f05038ec429
|
|
| BLAKE2b-256 |
a20da1b3d1dc03e1c5ef4f0247ae3503bdc2df1414a726b891973ba2b291702b
|
File details
Details for the file svo_client-2.2.1-py3-none-any.whl.
File metadata
- Download URL: svo_client-2.2.1-py3-none-any.whl
- Upload date:
- Size: 33.7 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 |
9e99cd6f681cd5b0fb66468318c2e0735b8574a4695ccfd977322aae337b7d36
|
|
| MD5 |
889fb22b675ae811996590d6a66493ae
|
|
| BLAKE2b-256 |
5c8bd61599c9d524799c18b1c1dc10db4fda6bfc77c693ae15a82ea81f042193
|