Async RabbitMQ library with spec-based API, topology restore, and automatic reconnection
Project description
RMQaio
Async RabbitMQ library with spec-based API, topology restore, and automatic reconnection.
Installation
pip install rmqaio
Quick Start
import asyncio
from rmqaio import Connection, Exchange, ExchangeSpec, Ops, Queue, QueueSpec
async def main():
conn = Connection("amqp://localhost")
await conn.open()
ops = Ops(conn)
exchange = Exchange(ExchangeSpec(name="events", type="topic", durable=True), ops)
await exchange.declare(restore=True)
queue = Queue(QueueSpec(name="my-queue", durable=True), ops)
await queue.declare(restore=True)
await queue.bind("events", routing_key="#", restore=True)
await conn.close()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rmqaio-0.18.1.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rmqaio-0.18.1-py3-none-any.whl
(20.2 kB
view details)
File details
Details for the file rmqaio-0.18.1.tar.gz.
File metadata
- Download URL: rmqaio-0.18.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.11.9 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
562483a9b59228688407014e935d6a3ac7fa4970dffe09030c8de40e6b88fa11
|
|
| MD5 |
720ff6eb0ad4938c8f26a137bb725f9a
|
|
| BLAKE2b-256 |
16b184f8bed2ad619ea8f57a07a3f79ccc6ef1b87feb74596096baf67b4f0900
|
File details
Details for the file rmqaio-0.18.1-py3-none-any.whl.
File metadata
- Download URL: rmqaio-0.18.1-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.11.9 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e8468975051576ddad5e34aa67bf81ca1abb0312e40c722d06bf23962df36c
|
|
| MD5 |
214b0e7feaa1106a8a8498044f1d41b5
|
|
| BLAKE2b-256 |
91912c1c31b243720ddc4ec69607f34ed0dffab6900229bb54b9a0ae6f89f38c
|