Relaybus core envelope utilities
Project description
relaybus-core (Python)
Core envelope encode/decode utilities for Relaybus.
Install
pip install relaybus-core
Example
from relaybus_core import OutgoingMessage, decode_envelope, encode_envelope
encoded = encode_envelope(
OutgoingMessage(topic="alpha", payload=b"hello", meta={"source": "py"})
)
decoded = decode_envelope(encoded)
print(decoded.topic, decoded.payload)
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
relaybus_core-0.0.4.tar.gz
(2.8 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 relaybus_core-0.0.4.tar.gz.
File metadata
- Download URL: relaybus_core-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26e4b84f8e72114d9bc512ce090f53e01e06903781ea7363dbfb78c77bb19189
|
|
| MD5 |
4a3a0b60ea972e5b8bf2c8c09c81b272
|
|
| BLAKE2b-256 |
1409fef9e2b45c3db2ebd07ae4fe29d4d291f6a0effe25f36fabfab49d5bc7fd
|
File details
Details for the file relaybus_core-0.0.4-py3-none-any.whl.
File metadata
- Download URL: relaybus_core-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7db083a42e055eb8ea7d4beca8209cb4587c2c1154a741bfddb1498f0de3399a
|
|
| MD5 |
16fe6a25540654ad553eba2a160a4676
|
|
| BLAKE2b-256 |
1788ca250004fef78fb863491964a1962d80302535bba40e68251eaa7aa52cd8
|