Skip to main content

Async Python client SDK for JBroker

Project description

JBroker Python Client SDK

Async Python client for JBroker.

Installation

pip install jbroker-client

Quick Start

import asyncio
from jbroker_client import JBrokerClient


async def main():
    async with JBrokerClient(host="127.0.0.1", port=4222) as client:
        await client.subscribe("sports.football", subscriber_id=1)
        result = await client.publish("sports.football", "Goal!")
        print(result)  # JSON response
        await client.unsubscribe(subscriber_id=1)


asyncio.run(main())

Features

  • Fully async (asyncio)
  • Automatic retry with exponential backoff
  • Built-in message caching (TTL-based)
  • Structured JSON error responses
  • File + console logging
  • Context manager support

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

pyjbroker-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

pyjbroker-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pyjbroker-0.1.0.tar.gz.

File metadata

  • Download URL: pyjbroker-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pyjbroker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f2a8decbe61273deb8d8213bf2d6afa09879fba92acb3530ab4271d197bb1b4
MD5 291ad865898b52a350db2b65e8378a08
BLAKE2b-256 aa313ec991799c227f2052b17ffd6d90c126159c95ed5cc9182eb2771e2075d3

See more details on using hashes here.

File details

Details for the file pyjbroker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyjbroker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pyjbroker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0709c42ff31eb0921b35fa3e4269b606eb25eb063d4eabff57ba915b996282d
MD5 a0566c5a63c74be60fb71fa37a565be7
BLAKE2b-256 ddf029d34d35f605bc37537e554e8f60b18cc5ceaf24c484a0371eed6bd60ab3

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