Skip to main content

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_ID with your actual application ID
  • Replace CHANNEL-ID with your target channel ID when publishing messages

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

oraczenhq-zenbroker-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

oraczenhq_zenbroker-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for oraczenhq-zenbroker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3fabf365dca07836b2903a0c892f8a6c6b50001a0577ba253fc90b82e323b874
MD5 16b85ff202ef25731dcb8f5f3fd2045b
BLAKE2b-256 251e508fe3305acce272097d7b6fff88991e2f1733346c9eb8d6d3681700d8b5

See more details on using hashes here.

File details

Details for the file oraczenhq_zenbroker-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oraczenhq_zenbroker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5fa88373d9e859378190a01d981af4287c0b937f0d3dae1d2aadb252ab453a2
MD5 af796e9cff221f1fdf50b9e269f40d8c
BLAKE2b-256 6e6dd4600e5edb08fcd83549a080edece7735e512df5f526da67eb85bc35b188

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