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.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

eventiq_asb-0.1.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eventiq_asb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f71067d8fb993930a54d48f84afc683fd86eed7fe5a61fa528b4f0df0ead3168
MD5 0aa19c3c93f8a52f477e755a4c28490e
BLAKE2b-256 6fe22d37a44c81034f1bbc19c375be9857728bdf3b6c0f3afd55c769e15d33c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for eventiq_asb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 edd58f9eb0d06d18d1516101f0c755b517e362e58940c366c51a6645e61b2c85
MD5 fc7cb05a82678e41376d4768c2486ade
BLAKE2b-256 c4e6479daa5d00190ec01509eaab8dec7d672dcbf54404d676b27444451012c4

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