Skip to main content

Azure Service Bus broker implementation for eventiq

Project description

Tests Build License Mypy Ruff security: bandit Python Format PyPi

eventiq-asb

Azure Service Bus broker implementation for eventiq

Installation

pip install eventiq-asb

With optional dependencies:

pip install 'eventiq-asb[aiohttp]'

Usage

from eventiq import CloudEvent, Service

from eventiq_asb import AzureServiceBusBroker, DeadLetterQueueMiddleware

service = Service(
    name="example-service",
    broker=AzureServiceBusBroker(
        topic_name="example-topic", url="sb://example.servicebus.windows.net/"
    ),
)

service.add_middleware(DeadLetterQueueMiddleware)

@service.subscribe(topic="example-topic")
async def example_consumer(message: CloudEvent):
    print(message.data)

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

eventiq_asb-0.1.8.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

eventiq_asb-0.1.8-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file eventiq_asb-0.1.8.tar.gz.

File metadata

  • Download URL: eventiq_asb-0.1.8.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for eventiq_asb-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5c0a0fc91cfc8e7198da39ce3e6461a1b4c8426e6c876d9b61419377af644736
MD5 a80533583cf4f632c78d2ecf06f5b19a
BLAKE2b-256 094289beb53605d4e3c09ae1e1985810d0a1180c064f039b69b1aff806ca3d1d

See more details on using hashes here.

File details

Details for the file eventiq_asb-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: eventiq_asb-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for eventiq_asb-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a5322e72e218766042fb976d63115b34882584c5d46b7694138ba3e02c653462
MD5 83abff7b9464fe00aa668e528389c9d2
BLAKE2b-256 6af8102b8294b72ec8b47881ada59186a5fc071e94c1c9fa15d21607dd2ccd90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page