Skip to main content

Lightweight ZMQ socket communication for robotics inference servers

Project description

tso-robotics-sockets

Tests PyPI Python

Lightweight ZMQ socket communication for robotics inference servers.

Provides a SocketClient / SocketServer pair plus array compression utilities for sending images and numpy arrays over ZeroMQ.

Installation

pip install tso-robotics-sockets

Quick start

from tso_robotics_sockets import SocketServer, SocketClient, ServerRoute

# Server
server = SocketServer(ip_address="0.0.0.0", port=5555)
server.add_route("echo", lambda msg: (True, msg), blocking=True)
server.run()

# Client (separate process)
client = SocketClient(server_address="localhost", server_port=5555)
response = client.send_request(route_name="echo", dict_data={"hello": "world"})
client.close()

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

tso_robotics_sockets-0.2.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

tso_robotics_sockets-0.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file tso_robotics_sockets-0.2.0.tar.gz.

File metadata

  • Download URL: tso_robotics_sockets-0.2.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tso_robotics_sockets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9435231e3b7c6f7dbb5a626a3528fcf4cbc5754e04576a565655cdf02b8d443d
MD5 f450fc4c4084c6ce5b39735ceced712d
BLAKE2b-256 484b30412f9cca2030ef7472751aab12cc5344176bdf9e2ce9d305cceeb3c1f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tso_robotics_sockets-0.2.0.tar.gz:

Publisher: publish.yml on nct-tso-robotics/tso_robotics_sockets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tso_robotics_sockets-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tso_robotics_sockets-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa6e1a054e8448306f867f4c4676d8d08ebffcd7018ac037e0907163ef965607
MD5 1fd14ec4228c014cb7ac661b740b8c64
BLAKE2b-256 313ec964783f4448967f6c1c1e8b2eb180eabbde42c8887cefb7c57de28bedd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tso_robotics_sockets-0.2.0-py3-none-any.whl:

Publisher: publish.yml on nct-tso-robotics/tso_robotics_sockets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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