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.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_ctrl_os-0.6.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea3cbb11bf338ff0bc714c773075d15d5c00bb86975963e9fd86335f7fa3fb4
MD5 63df55879d921944d4445f016d3a0fff
BLAKE2b-256 ccd96b96d74586e99e8f4cb7ed13a1da124468548fe02e51c4662b4940fb4502

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