qmetrics.net

Kombu

Python messaging library with pluggable transports

Kombu screenshot

Kombu is a Python package for message queues and AMQP-style messaging. It offers a high-level API and transports for RabbitMQ, Redis, SQS, MongoDB, and others.

Overview

Kombu is a messaging library for Python whose goal is to make messaging straightforward via an idiomatic interface to AMQP and common messaging patterns. AMQP is the Advanced Message Queuing Protocol; RabbitMQ is a widely used implementation.

Pluggable transports let applications target different brokers without rewriting messaging code. Built-in options include AMQP via py-amqp or qpid-python, plus virtual transports for Redis, Amazon SQS, ZooKeeper, SoftLayer MQ, MongoDB, PGMQ, Pyro, and an in-memory transport for unit tests. Features include automatic payload encoding, serialization, compression, consistent exceptions across transports, graceful handling of connection and channel errors, and timeouts when waiting on channels.

Messaging follows producers sending to exchanges, exchanges routing via routing keys to queues declared by consumers. Exchange types covered include direct, fan-out, and topic-style pattern matching. Transport capabilities such as priority and TTL differ by backend.

Typical code uses Connection, Exchange, and Queue objects with producers publishing and consumers draining events. Exchanges and queues can be pickled for configuration. Installation is via pip or easy_install from PyPI. Kombu is part of the Celery ecosystem and supports porting from the older carrot library through a compatibility layer.

Key features

  • AMQP and multi-broker transports
  • Producer and consumer APIs
  • Message serialization and compression
  • Connection error handling
  • In-memory transport for tests
  • Exchange and queue declarations
  • Redis, SQS, MongoDB, PGMQ backends
  • Carrot compatibility layer

Use cases

  • Python workers consuming task queues
  • Multi-broker messaging abstractions
  • RabbitMQ pub/sub applications
  • Unit-tested messaging with in-memory transport

Tags

Similar software

Socket.IO

Bidirectional real-time communication for web and Node

Socket.IO enables low-latency, event-based communication between clients and servers. It prefers WebSockets and falls back to HTTP long-polling when needed.

★ 63.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

ntfy

HTTP pub-sub push notification service

Ntfy sends push notifications to phones and desktops via simple HTTP PUT or POST requests and a REST API, without requiring sign-up on the public host.

★ 35.8k⟳ todayApache-2.0

Celery

Distributed task queue for Python workers and brokers

Celery distributes units of work called tasks from client applications to worker processes through a message broker. It supports RabbitMQ, Redis, Amazon SQS, and other transports with retries and scheduling features.

★ 29.3k⟳ yesterdayBSD-3-Clause

NSQ

Realtime distributed message queue and pub-sub platform

NSQ is a distributed messaging system built for large-scale throughput. It avoids single points of failure and ships with official Go and Python client libraries.

★ 25.8k⟳ 3 months agoMIT

Redisson

Java client and real-time data platform for Valkey and Redis

Redisson is a Java client for Valkey and Redis with synchronous, asynchronous, reactive, and RxJava APIs. It adds distributed collections, locks, queues, caching helpers, and related services on top of standard Valkey or Redis deployments.

★ 24.4k⟳ 4 days agoApache-2.0

whatsapp-web.js

Node.js client for WhatsApp Web automation

whatsapp-web.js drives WhatsApp Web through Puppeteer so Node programs can send, receive, and manage chats with many web-client features. It targets multi-device accounts and documents session auth strategies.

★ 23k⟳ 3 days agoApache-2.0
Integration PlatformsDesktop/CLI app