kombu
Messaging library for Python.
Decision gist · record as of 2026-08-14
Yes. Kombu is a mature, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It is the standard abstraction layer for Python messaging and is essential if you need to support multiple message brokers or integrate with Celery. Install it if you are building any distributed system that requires reliable message passing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running message broker (RabbitMQ, Redis, etc.) accessible at the connection URL; in-memory transport available for testing without a broker.
- Low install friction with a pure-wheel distribution and only four runtime dependencies (amqp, vine, tzdata, packaging).
- The project is actively maintained with recent commits and has been in production use since 2010.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, requiring only that the license and copyright notice be included in distributions.
last release 2025-12-29 (228 days) · last repo commit 2026-08-13 · 3,136 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 58,934,776 downloads/mo, #512 on PyPI
Alternatives
Verify before relying
pip install kombu
from kombu import Connection, Exchange, Queue, Producer
with Connection('amqp://guest:guest@localhost//') as conn:
exchange = Exchange('tasks', 'direct', durable=True)
queue = Queue('work', exchange=exchange, routing_key='task')
producer = conn.Producer(serializer='json')
producer.publish({'task': 'process'}, exchange=exchange, routing_key='task')- Whether the package's built-in support for specific brokers (Redis, MongoDB, SQS, ZooKeeper) requires additional client libraries beyond the listed runtime dependencies.
- Performance characteristics and latency overhead of the abstraction layer compared to direct broker client libraries.
What it is and what it does
Kombu abstracts away the differences between message brokers by providing a unified Python API for producing and consuming messages. It implements the AMQP protocol natively and adds virtual transports for non-AMQP brokers like Redis, MongoDB, and Amazon SQS, letting you write messaging code once and switch brokers by changing a connection string. The library handles message serialization, compression, encoding, and graceful error recovery across all supported transports.
You use Kombu by creating Connection, Exchange, and Queue objects, then instantiating Producer and Consumer instances to send and receive messages. It supports both context managers and manual resource management, and handles multi-queue consumption on a single channel. The library is widely used in distributed systems and task queues where reliable message delivery and transport flexibility are important.
Use it for
- Building task queue systems where you want to switch between RabbitMQ, Redis, or other brokers without rewriting application code.
- Implementing producer-consumer patterns in microservices that need reliable message delivery with automatic serialization and compression.
- Creating event-driven architectures that route messages to multiple consumers based on exchange and queue bindings.
- Testing messaging code in development using the in-memory transport, then deploying to RabbitMQ or another broker in production.
- Integrating with Celery or other distributed task frameworks that depend on Kombu for message transport.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Kombu is a mature, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It is the standard abstraction layer for Python messaging and is essential if you need to support multiple message brokers or integrate with Celery. Install it if you are building any distributed system that requires reliable message passing.
Install
kombu on PyPI
Before you install
Low install friction with a pure-wheel distribution and only four runtime dependencies (amqp, vine, tzdata, packaging). The project is actively maintained with recent commits and has been in production use since 2010.
Requires a running message broker (RabbitMQ, Redis, etc.) accessible at the connection URL; in-memory transport available for testing without a broker.
License in practice
BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, requiring only that the license and copyright notice be included in distributions.
Quickstart
pip install kombu
from kombu import Connection, Exchange, Queue, Producer
with Connection('amqp://guest:guest@localhost//') as conn:
exchange = Exchange('tasks', 'direct', durable=True)
queue = Queue('work', exchange=exchange, routing_key='task')
producer = conn.Producer(serializer='json')
producer.publish({'task': 'process'}, exchange=exchange, routing_key='task')
Verify before relying
- Whether the package's built-in support for specific brokers (Redis, MongoDB, SQS, ZooKeeper) requires additional client libraries beyond the listed runtime dependencies.
- Performance characteristics and latency overhead of the abstraction layer compared to direct broker client libraries.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesamqpvinetzdatapackaging |
| Maintenance | Actively maintained 228 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 58,934,776 / month, #512 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: CommunicationsTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Distributed ComputingTopic :: System :: Networking |
Evidence: kombu-5.6.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “message queue abstraction”
- kombuKombu is a messaging library that provides a high-level Python…
- oslo.messagingOslo Messaging provides a unified API for RPC and notification…
- amqpPure-Python AMQP 0.9.1 client library for connecting to message…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also amqp · AMQPStorm · fedora-messaging · python-qpid-proton · stomp.py · aiormq · ibmmq · pyrabbit2 · pika · uamqp