Skip to main content

Python CFFI bindings for rs_ctrl_os - distributed ZMQ pub/sub

Project description

py-ctrl-os

Python CFFI bindings for rs_ctrl_os — a distributed ZMQ pub/sub runtime.

Install

pip install py-ctrl-os

On first import, the library auto-downloads librs_ctrl_os.so from GitHub releases.

Quick Start

from py_ctrl_os import PubSubManager, load_config

static, dynamic = load_config("config.toml")
bus = PubSubManager(static)

# Publish JSON
bus.publish_json("my_node", "status", {"hello": "world"})

# Receive
result = bus.try_recv_json("from_other_node")
if result:
    sender, topic, data = result
    print(f"From {sender}: {data}")

Requirements

  • Python 3.10+
  • Linux x86_64 or aarch64
  • libzmq (system library, usually pre-installed)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

py_ctrl_os-0.6.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file py_ctrl_os-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: py_ctrl_os-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for py_ctrl_os-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 97b02624e28020394f27af281f1bd75c3ef3171ab38e25cd789e6c5f10dd2d74
MD5 0bf5fd7f7d722bd3399520abe5d35333
BLAKE2b-256 a5b462df09b42375a84b60d24a819a34dab1795df14e3c2e2f473bbbddc63304

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