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.18.1.tar.gz (17.8 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.18.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

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

Hashes for rmqaio-0.18.1.tar.gz
Algorithm Hash digest
SHA256 562483a9b59228688407014e935d6a3ac7fa4970dffe09030c8de40e6b88fa11
MD5 720ff6eb0ad4938c8f26a137bb725f9a
BLAKE2b-256 16b184f8bed2ad619ea8f57a07a3f79ccc6ef1b87feb74596096baf67b4f0900

See more details on using hashes here.

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

Hashes for rmqaio-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e8468975051576ddad5e34aa67bf81ca1abb0312e40c722d06bf23962df36c
MD5 214b0e7feaa1106a8a8498044f1d41b5
BLAKE2b-256 91912c1c31b243720ddc4ec69607f34ed0dffab6900229bb54b9a0ae6f89f38c

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