Skip to main content

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.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

relaybus_core-0.0.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file relaybus_core-0.0.2.tar.gz.

File metadata

  • Download URL: relaybus_core-0.0.2.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

Hashes for relaybus_core-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4cf6a76435a8dd4b17b650110226ba379cb99a6378d69b8b52dca03fda1b5191
MD5 1f7a2cad422fdc10655b23b33fd94af1
BLAKE2b-256 274be72b28cb81b7a11986d8e565db30931e282e9486b9697226ad60ee09e149

See more details on using hashes here.

File details

Details for the file relaybus_core-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: relaybus_core-0.0.2-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

Hashes for relaybus_core-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 529d16bc0246f4b2f4369a7633e67dd9173cdd191065fdb6cbd183971e0c5c41
MD5 d9c81d03e957e35a935e7401f2db64f8
BLAKE2b-256 6887c4d956890b0739dc5fb81feea973f3f3a629535623a61c0452497e52e319

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