dramatiq
Background Processing for Python 3.
Decision gist · record as of 2026-08-14
Yes. Dramatiq is a mature, actively maintained library with no known vulnerabilities and low install friction. It's well-suited for any Python application that needs reliable background task processing. The copyleft license is a consideration only if you plan to modify and redistribute the library itself. Choose it if you need a straightforward, production-ready task queue backed by RabbitMQ or Redis.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- A running RabbitMQ or Redis broker is required; dramatiq itself is only the client and worker library.
- Installation is low-friction; the package itself is a pure Python wheel with no runtime dependencies.
- Maintenance is active with a recent release and ongoing commits, though you'll need to separately install and run a message broker as a prerequisite.
License · maintenance · safety
copyleft license (copyleft) — Licensed under LGPLv3+, a copyleft license. You can use it freely in open-source projects, but if you distribute or deploy a modified version, you must make your changes available under the same license terms.
last release 2026-06-17 (58 days) · last repo commit 2026-08-13 · 5,309 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,607,851 downloads/mo, #3,724 on PyPI
Alternatives
Verify before relying
pip install 'dramatiq[rabbitmq]'
import dramatiq
@dramatiq.actor
def my_task(x):
return x * 2
my_task.send()- Whether the package supports task result persistence or only fire-and-forget semantics
- Retry and error-handling policies available beyond what the quickstart shows
- Performance characteristics and throughput limits under typical workloads
What it is and what it does
Dramatiq is a distributed task processing library for Python that decouples work from the main application by sending tasks to a message broker for background execution. You define tasks as Python functions decorated with @dramatiq.actor, then call .send() to queue them asynchronously. Workers consume messages from the broker and execute the tasks in parallel, enabling you to handle long-running or resource-intensive operations without blocking your main application.
The library supports RabbitMQ and Redis as message brokers and requires Python 3.10 or later. It has no runtime dependencies beyond the broker itself, making installation straightforward. The project is actively maintained with recent releases and a stable API, suitable for production use in applications that need reliable background job processing.
Use it for
- Queue long-running HTTP requests or API calls to execute in the background without blocking the main application
- Distribute CPU-intensive computations across multiple worker processes or machines
- Send transactional emails, notifications, or batch reports asynchronously after user actions
- Process uploaded files, generate reports, or perform data transformations on a schedule or on-demand
- Implement retry logic and error handling for operations that may fail intermittently
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Dramatiq is a mature, actively maintained library with no known vulnerabilities and low install friction. It's well-suited for any Python application that needs reliable background task processing. The copyleft license is a consideration only if you plan to modify and redistribute the library itself. Choose it if you need a straightforward, production-ready task queue backed by RabbitMQ or Redis.
Install
dramatiq on PyPI
Before you install
Installation is low-friction; the package itself is a pure Python wheel with no runtime dependencies. Maintenance is active with a recent release and ongoing commits, though you'll need to separately install and run a message broker as a prerequisite.
A running RabbitMQ or Redis broker is required; dramatiq itself is only the client and worker library.
License in practice
Licensed under LGPLv3+, a copyleft license. You can use it freely in open-source projects, but if you distribute or deploy a modified version, you must make your changes available under the same license terms.
Quickstart
pip install 'dramatiq[rabbitmq]'
import dramatiq
@dramatiq.actor
def my_task(x):
return x * 2
my_task.send()
Verify before relying
- Whether the package supports task result persistence or only fire-and-forget semantics
- Retry and error-handling policies available beyond what the quickstart shows
- Performance characteristics and throughput limits under typical workloads
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 58 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,607,851 / month, #3,724 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: Distributed Computing |
Evidence: dramatiq-2.2.0-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 broker task processing”
- dramatiqDramatiq is a distributed task processing library that lets you…
- celeryCelery is a distributed task queue that lets you run Python functions…
- taskiq-redisAdds Redis-based message brokers and result backends to taskiq,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also django-dramatiq · vercel-workers · celery · taskiq · arq · rq · pydocket · saq · redis-simple-mq