Skip to main content

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())

Documentation

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

rmqaio-0.17.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rmqaio-0.17.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file rmqaio-0.17.1.tar.gz.

File metadata

  • Download URL: rmqaio-0.17.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.9 Darwin/25.2.0

File hashes

Hashes for rmqaio-0.17.1.tar.gz
Algorithm Hash digest
SHA256 c57c444200d6182e5d15f13ede823e8dc5953d6985197605628fdec3c54df353
MD5 a16fc3f9c995113c93efab4ecaa3a619
BLAKE2b-256 e7586bff8d414c3cdeeb3b676c474fe0e7925647824fb56d64510695c7e6c27d

See more details on using hashes here.

File details

Details for the file rmqaio-0.17.1-py3-none-any.whl.

File metadata

  • Download URL: rmqaio-0.17.1-py3-none-any.whl
  • Upload date:
  • Size: 19.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

Hashes for rmqaio-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e31fd487666922970051a6dab2ee38816d8c9bf5cafb356c463fe652f412ba1e
MD5 1d59b6b1c99cd7d8e3bf31c2feb4b619
BLAKE2b-256 08d57b98b77fbc67320fe7a938de28ea130d35607723e2d50b4cd17ab5b3bb84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page