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.1.1.tar.gz (15.2 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.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: svo_client-2.1.1.tar.gz
  • Upload date:
  • Size: 15.2 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.1.1.tar.gz
Algorithm Hash digest
SHA256 5d2e7bcd65bb4a865d16912a36053ba0f7b6fe72d6cfbe569fff4d3592bd4b7f
MD5 6c35a1e56f4d047205b4d47d5ccf717d
BLAKE2b-256 942cead6c0fbfb1cd7087901813a3359de0066272fcbc438fde6c104f6b49665

See more details on using hashes here.

File details

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

File metadata

  • Download URL: svo_client-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54e16b92857555b0ffbeafb44d43c79eac7022bf37444f6ca9d993b7c840ce8a
MD5 b85293ca2fb7859c7dc11bb60b9da26a
BLAKE2b-256 d3967882c5ffe35fb83b82d34cf0f0b46ec9fcf45778ae30340624707a662e70

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