Skip to main content

PyURT Sync – синхронный клиент и сервер протокола PyURT (блокирующие сокеты)

Project description

PyURT Sync – синхронный протокол PyURT

Блокирующая (синхронная) версия протокола PyURT, использующая сокеты напрямую. Подходит для скриптов и приложений, где не нужен asyncio.

Установка

pip install pyurt-sync

### Синхронный сервер
from pyurt_sync import PyURTServerSync

# Создаём экземпляр сервера (хост и порт берутся из ENV или можно передать явно)
server = PyURTServerSync(host="0.0.0.0", port=8888)

# Запускаем сервер (блокирует текущий поток, работает до прерывания)
try:
    server.start()
except KeyboardInterrupt:
    server.stop()


### Синхронный клиент
from pyurt_sync import PyURTClientSync

client = PyURTClientSync()
response = client.send_message_sync({"cmd": "ping"})
print(response)

### CLI
pyurt-sync-server # Синхронный сервер
pyurt-sync-client --text "Hello" # Синхронный клиент

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

pyurt_sync-3.1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

pyurt_sync-3.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pyurt_sync-3.1.2.tar.gz.

File metadata

  • Download URL: pyurt_sync-3.1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for pyurt_sync-3.1.2.tar.gz
Algorithm Hash digest
SHA256 f3340012dde906f93292f9307f1112970f92ef2415a0fac724dc2269d025ebf5
MD5 a326941dcb54a1639b25c7624fad7bbe
BLAKE2b-256 ffe26c457d564af684deb2413519285e5712acf009cbe62fbe0f702fb4e3e102

See more details on using hashes here.

File details

Details for the file pyurt_sync-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyurt_sync-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for pyurt_sync-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39914f21a56a220c4c5bfe140a466a14cb98b49b7e9d34ca4470458c8b5bfe8a
MD5 85a1b8c6fd6166dc12a61d2d1357a2b3
BLAKE2b-256 825227defcc3044aa1b76e2fd1b256f932caca08227acc4d9fd7d2bb2d60f76a

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