랭킹으로 돌아가기
A fast and reliable background task processing library for Python 3.
pythontask-managertask-schedulertask-runnerdistributed-locktaskredisrabbit
주요 지표
스타 성장
스타
5.3k
포크
375
주간 성장
—
이슈
43
2k4k
2017년 6월2018년 12월2020년 6월2021년 12월2023년 7월2025년 1월2026년 7월
아티팩트PyPI
pip install dramatiqREADME

dramatiq
A fast and reliable distributed task processing library for Python 3.
Changelog: https://dramatiq.io/changelog.html
Community: https://groups.io/g/dramatiq-users
Documentation: https://dramatiq.io
Sponsors
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.
관련 저장소