Skip to main content

Zenbroker Client Example

This project demonstrates how to use the Zenbroker client library to publish messages to channels.

Installation

pip install zenbroker

Configuration

You need to configure your Zenbroker client with your application ID:

from zenbroker import ZenbrokerClient

client = ZenbrokerClient(
    application_id="YOUR_APPLICATION_ID",
    base_url="https://broker.oraczen.xyz"
)

Usage

Publishing a single message

resp = client.publish(
    channel="CHANNEL-ID",
    data={
        "key": "value",
        "message": "hello"
    }
)

Notes

  • Replace YOUR_APPLICATION_ID with your actual application ID
  • Replace CHANNEL-ID with your target channel ID when publishing messages

Metadata

Release files for oraczenhq-zenbroker 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oraczenhq-zenbroker 1.0.0
File Size Uploaded
oraczenhq-zenbroker-1.0.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oraczenhq-zenbroker 1.0.0
File Interpreter ABI Platform
oraczenhq_zenbroker-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / oraczenhq-zenbroker-1.0.0.tar.gz

Download URL oraczenhq-zenbroker-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fabf365dca07836b2903a0c892f8a6c6b50001a0577ba253fc90b82e323b874
BLAKE2b-256 checksum
How to use checksums
251e508fe3305acce272097d7b6fff88991e2f1733346c9eb8d6d3681700d8b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / oraczenhq_zenbroker-1.0.0-py3-none-any.whl

Download URL oraczenhq_zenbroker-1.0.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5fa88373d9e859378190a01d981af4287c0b937f0d3dae1d2aadb252ab453a2
BLAKE2b-256 checksum
How to use checksums
6e6dd4600e5edb08fcd83549a080edece7735e512df5f526da67eb85bc35b188
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page