Zenbroker client
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 oraczenhq-zenbroker-1.0.0.tar.gz.
File metadata
- Download URL: oraczenhq-zenbroker-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fabf365dca07836b2903a0c892f8a6c6b50001a0577ba253fc90b82e323b874
|
|
| MD5 |
16b85ff202ef25731dcb8f5f3fd2045b
|
|
| BLAKE2b-256 |
251e508fe3305acce272097d7b6fff88991e2f1733346c9eb8d6d3681700d8b5
|
File details
Details for the file oraczenhq_zenbroker-1.0.0-py3-none-any.whl.
File metadata
- Download URL: oraczenhq_zenbroker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5fa88373d9e859378190a01d981af4287c0b937f0d3dae1d2aadb252ab453a2
|
|
| MD5 |
af796e9cff221f1fdf50b9e269f40d8c
|
|
| BLAKE2b-256 |
6e6dd4600e5edb08fcd83549a080edece7735e512df5f526da67eb85bc35b188
|