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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tso_robotics_sockets-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f98ad72bd0f5282031035669c3b984d186809b40b3c12bd30c19faa543c7824
MD5 557ab453f657f1ef08fcd78c0e087529
BLAKE2b-256 4ef92cbd592915f2f440cceb553436e46c068f7aec25a99a62b44540f83c4689

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on Lorenzo-Mazza/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.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tso_robotics_sockets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38dbee4532b7a34e9111aedbbb5162cace3f8876e1aa0fc5486f98898fa27442
MD5 1b4ceed48aae23b7af2b36630de2d8ee
BLAKE2b-256 fae5cab5d542ea14334d08d984f323f95ba5c8719686fff80e4a27971b785f64

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on Lorenzo-Mazza/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