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_IDwith your actual application ID - Replace
CHANNEL-IDwith 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)
| File | Size | Uploaded | |
|---|---|---|---|
| oraczenhq-zenbroker-1.0.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|