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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?