https://github.com/asynq-io/eventiq-asb
Azure Service Bus broker implementation for eventiq
https://github.com/asynq-io/eventiq-asb
asyncio azure-service-bus eventiq python
Last synced: 3 months ago
JSON representation
Azure Service Bus broker implementation for eventiq
- Host: GitHub
- URL: https://github.com/asynq-io/eventiq-asb
- Owner: asynq-io
- License: apache-2.0
- Created: 2024-08-05T17:37:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T18:02:16.000Z (7 months ago)
- Last Synced: 2025-04-02T04:35:00.463Z (3 months ago)
- Topics: asyncio, azure-service-bus, eventiq, python
- Language: Python
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




[](https://github.com/charliermarsh/ruff)
[](https://github.com/PyCQA/bandit)


# eventiq-asb
Azure Service Bus broker implementation for eventiq
## Installation
```shell
pip install eventiq-asb
```With optional dependencies:
```shell
pip install 'eventiq-asb[aiohttp]'
```## Usage
```python
from eventiq import CloudEvent, Servicefrom 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)```