Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-22T07:15:03.000Z (3 months ago)
- Last Synced: 2024-10-23T09:57:15.909Z (3 months ago)
- Topics: asyncio, azure-service-bus, eventiq, python
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Tests](https://github.com/asynq-io/eventiq-asb/workflows/Tests/badge.svg)
![Build](https://github.com/asynq-io/eventiq-asb/workflows/Publish/badge.svg)
![License](https://img.shields.io/github/license/asynq-io/eventiq-asb)
![Mypy](https://img.shields.io/badge/mypy-checked-blue)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
![Python](https://img.shields.io/pypi/pyversions/eventiq-asb)
![Format](https://img.shields.io/pypi/format/eventiq-asb)
![PyPi](https://img.shields.io/pypi/v/eventiq-asb)# 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)```