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

Uploaded Python 3

File details

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

File metadata

  • Download URL: relaybus_core-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 32c828a1f3c00d994152d90d43aee194510f8f41549c1ac75752497a3e5f5ea4
MD5 956083787432e0fbb1c6ecd3d0f6d5a0
BLAKE2b-256 16d0ced6e2ab46acdff9dbba9f2b78ff8377fb78d83b52ddb47b4fe565f042df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: relaybus_core-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cafa0b0db9957a924bb9aa48cad17375da85e1f80257571d94c423518eb5c55e
MD5 a16eabe67740ff57b2e70801968bc6d9
BLAKE2b-256 94ba722861d4b6889c8f61440955ec34958ebb55ada6b0e7e0b5ed51df192a5b

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