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.0.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.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rmqaio-0.17.0.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.0.tar.gz
Algorithm Hash digest
SHA256 4bb479b5542ac1b38764c0b2b8e3c72da75c0faba53bb6862f587031a569431b
MD5 6e36181c877be215f38aa86360141c3d
BLAKE2b-256 97e893570824397a097d49db3e4d343c19b8feeae18bc14505effa574899220d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rmqaio-0.17.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26f00cdc2ee3f8d6756e1888465efe82dbe5d914df0db92a3b6c61cadc150614
MD5 a2338aa31f5ee7cbbe0ef06195699963
BLAKE2b-256 186ffd0b29773c236a2e3e55d8f6379b8b0d29eb326b0848dbf0bb6f5a7afac2

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