Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
dramatiq-1.3.0-py3-none-any.whl (82.5 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 5, 2018
dramatiq-1.3.0.tar.gz (59.2 kB) Copy SHA256 hash SHA256 Source None Jul 5, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page