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.2.tar.gz (49.6 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.2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: svo_client-2.2.2.tar.gz
  • Upload date:
  • Size: 49.6 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.2.tar.gz
Algorithm Hash digest
SHA256 231d74c487dedbf1ed5ecf6cce60742ee1a327a1badf2806c458cd8e729b6c3c
MD5 37c7e5b1fed0d2f4075bebc7877b309f
BLAKE2b-256 1b3abf9aa6fb7111c2ddcc1e9f36e2398ab5333279810bee1ed3f67e70c216a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: svo_client-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 34.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0c5a36bcf0f564590d05e026e47691003d6d10be96e071b5c1e5568d8d3ff20
MD5 f5266198737400c9e78fd42bbde6ea81
BLAKE2b-256 1ed46bf4f619dbf70aad688666d9554b9f4750dc7b1f2ef5892a6c082a919c7f

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