# mosquito/aio-pika

AMQP 0.9 client designed for asyncio and humans.

Repository: https://github.com/mosquito/aio-pika
Canonical: https://ross.abutalabs.com/products/aio-pika
Homepage: https://docs.aio-pika.com/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: rabbitmq, python-3, python-3-6, amqp-connection, amqp, asyncio, async-python, aiormq, python3-7, python3-8, python3-9, python3-10, mypy, typehints, python3-11
Last push: 2026-07-09T13:31:01+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 92, longevity 100
- inputs: {"age_days": 3626, "days_push": 55, "days_rel": 55, "gap_med": 14.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1472, forks 209 (observed 2026-08-28T04:04:49.485273+00:00)

## What it is
aio-pika is an asynchronous Python client library for RabbitMQ built on top of aiormq, providing an object-oriented asyncio API for AMQP 0.9.1. It supports transparent auto-reconnects with full state recovery, publisher confirms, transactions, and complete type hints.

## Use cases
- consume messages from rabbitmq queues asynchronously in python
- publish messages to rabbitmq with publisher confirms
- build robust async workers that survive rabbitmq reconnects
- implement rpc over rabbitmq in asyncio applications
- declare queues and exchanges programmatically with python
- run rabbitmq transactions from async python code

## When to choose
- you need an asyncio-native RabbitMQ client for Python 3.11+
- you want automatic reconnection with recovery of queues, bindings, and consumers
- you need type-hinted, object-oriented AMQP APIs
- you need publisher confirms or transactions in async code

## When to avoid
- you need AMQP support outside Python or without asyncio
- you use Python older than 3.11 in recent versions
- you need a synchronous client or non-RabbitMQ brokers like Kafka

## Facets
- artifact type: library
- maturity: stable
- function: message-queue, rpc, http-client
- domain: backend, developer-tools, microservices
- platform: python, cross-platform
- tags: rabbitmq, amqp, asyncio, aiormq, message-broker, async-python, publisher-confirms, messaging

## Member repositories
- mosquito/aio-pika (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.485273+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:42.455945+00:00, confidence not recorded.
  - readme: https://github.com/mosquito/aio-pika (fetched 2026-08-28T04:04:49.485273+00:00, sha c8eab5c6b9c9)
  - homepage: https://docs.aio-pika.com/ (fetched 2026-08-29T11:42:22.111208+00:00, sha e3efbaa053a7)
  - registry_pypi: https://pypi.org/pypi/aio-pika/json (fetched 2026-08-29T11:42:22.120202+00:00, sha b6046287389d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
