dramatiq

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

Github星跟踪图

dramatiq

Build Status
PyPI version
Documentation
Discourse

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

Changelog: https://dramatiq.io/changelog.html
Community: https://reddit.com/r/dramatiq
Documentation: https://dramatiq.io

Installation

If you want to use it with RabbitMQ

pip install 'dramatiq[rabbitmq, watch]'

or if you want to use it with Redis

pip install 'dramatiq[redis, watch]'

Quickstart

Make sure you've got RabbitMQ running, then create a new file called
example.py:

import dramatiq
import requests
import sys


@dramatiq.actor
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__":
    count_words.send(sys.argv[1])

In one terminal, run your workers:

dramatiq example

In another, start enqueueing messages:

python example.py http://example.com
python example.py https://github.com
python example.py https://news.ycombinator.com

Check out the user guide to learn more!

License

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

主要指标

概览
名称与所有者Bogdanp/dramatiq
主编程语言Python
编程语言Python (语言数: 2)
平台
许可证GNU Lesser General Public License v3.0
所有者活动
创建于2017-05-30 11:55:29
推送于2025-08-12 03:43:09
最后一次提交2025-08-08 14:18:42
发布数68
最新版本名称v1.18.0 (发布于 )
第一版名称v0.0.2 (发布于 )
用户参与
星数4.8k
关注者数58
派生数340
提交数1.2k
已启用问题?
问题数419
打开的问题数47
拉请求数175
打开的拉请求数14
关闭的拉请求数149
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?