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

Uploaded Source

Built Distribution

eventiq_asb-0.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eventiq_asb-0.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for eventiq_asb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eaac1cf068b957df2c87961555d4502be762395729733998963b545716da001d
MD5 c78c267b86d3a0030ce153cedf189575
BLAKE2b-256 b631d18b82a63623c42277994fcea4bb1a477e930308f415bdd4d1ca95660d37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eventiq_asb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for eventiq_asb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 663e2ec34a972e851b7b7e55c185b708fcbae7bc26d660130e388938585ff24d
MD5 53d66f81f41b9b1a74734b0d3eb12890
BLAKE2b-256 6f8cbc4fcb979fb277f4bd3ccc476339286a91b8267c59fb601937968e0fefcf

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