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 Distribution
py_ctrl_os-0.6.1.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_ctrl_os-0.6.1.tar.gz.
File metadata
- Download URL: py_ctrl_os-0.6.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9a86eb2dde02e736891a60eb426c244f8d84cb5aac1d048a65da60aae23250
|
|
| MD5 |
e58a3716202c48005cb4242ca91a784f
|
|
| BLAKE2b-256 |
17c658aa2c7bba923d6db08ee40f12c6a6b3699d23e1592f2754fd9e7f69893b
|
File details
Details for the file py_ctrl_os-0.6.1-py3-none-any.whl.
File metadata
- Download URL: py_ctrl_os-0.6.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3944f1410ef2a4368eac46351c831a71358bc9115ebab60f960d46ca206a53a1
|
|
| MD5 |
52f80326c7ab341c576ba59986640b65
|
|
| BLAKE2b-256 |
56f87a64b9a9eae11ec26f097448b52f930e8b98b065bc2311ad0bed65e142f8
|