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.8.tar.gz (50.5 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.8-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: svo_client-2.2.8.tar.gz
  • Upload date:
  • Size: 50.5 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.8.tar.gz
Algorithm Hash digest
SHA256 ff0042b1bb7d93791ee6ee5e9188678110bce070dca8d001bb1f3f305b58509b
MD5 fe72f588f16132d50c783660501bfdff
BLAKE2b-256 5a99c1aa45a68df97c87f82c3218b0b3af56b4665fc425bd82dd645da9eef781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: svo_client-2.2.8-py3-none-any.whl
  • Upload date:
  • Size: 34.7 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 06561222c1972c0ae03442774ebfab79aa7ec4143cb135fb86ea7a9e2a12c392
MD5 0f8a133d5f4335f080c54e02a30cc87a
BLAKE2b-256 ed0f4f6fdafbdadb4b8bdfd57b56c20b6d24499ea7cf594f7e191aaf051ccbab

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