Skip to main content

Background Processing for Python 3.

Project description

<img src="" align="right" width="131" />

# dramatiq

[![Build Status](](
[![Test Coverage](](
[![PyPI version](](

*A fast and reliable distributed task processing library for Python 3.*


**Changelog**: <br/>
**Community**: <br/>


## Installation

If you want to use it with [RabbitMQ]

pipenv install 'dramatiq[rabbitmq, watch]'

or if you want to use it with [Redis]

pipenv install 'dramatiq[redis, watch]'

## Quickstart

Make sure you've got [RabbitMQ] running, then create a new file called

``` python
import dramatiq
import requests
import sys
def count_words(url):
response = requests.get(url)
count = len(response.text.split(" "))
print(f"There are {count} words at {url!r}.")

if __name__ == "__main__":

In one terminal, run your workers:

dramatiq example

In another, start enqueueing messages:


Check out the [user guide] to learn more!

## License

dramatiq is licensed under the LGPL. Please see [COPYING] and
[COPYING.LESSER] for licensing details.

[user guide]:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dramatiq, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size dramatiq-1.3.0.tar.gz (59.2 kB) File type Source Python version None Upload date Hashes View
Filename, size dramatiq-1.3.0-py3-none-any.whl (82.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page