Skip to main content

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


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.3.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

svo_client-2.2.3-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file svo_client-2.2.3.tar.gz.

File metadata

  • Download URL: svo_client-2.2.3.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for svo_client-2.2.3.tar.gz
Algorithm Hash digest
SHA256 ae5702dbddf56d434c1b82abf545b086ad0008d31f4043f2c673b23911298e06
MD5 1529e156f6374c4dc8832acca8512d82
BLAKE2b-256 290696c19af5e03cf5c5d391ef55139c54975f2c982bf162ab30573b4357ed18

See more details on using hashes here.

File details

Details for the file svo_client-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: svo_client-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for svo_client-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d21f4c732f43719190e44bf943afff48c79e794b8384725c08e471ca11ff2e97
MD5 79b03df528e7ba30210090b74f4d13cc
BLAKE2b-256 d91f7b79907aca535c201e917596d1439705978f64578667c9df4f89176fad89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page