Skip to main content

Background Processing for Python 3.

Project description

dramatiq

Build Status PyPI version Documentation Discuss

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.

Project details


Download files

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

Source Distribution

dramatiq-2.2.0.tar.gz (108.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dramatiq-2.2.0-py3-none-any.whl (127.3 kB view details)

Uploaded Python 3

File details

Details for the file dramatiq-2.2.0.tar.gz.

File metadata

  • Download URL: dramatiq-2.2.0.tar.gz
  • Upload date:
  • Size: 108.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for dramatiq-2.2.0.tar.gz
Algorithm Hash digest
SHA256 70c9278b0a9b880aeb23b8e09c9d43b1421ac8e807ef18903f6dd059130474a1
MD5 cddc8af8cba044663d1480f9f51f588f
BLAKE2b-256 29fb78b1b689c4a121fc762ab6f00674cfa7246980678117edb03cbb168e5f9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dramatiq-2.2.0.tar.gz:

Publisher: release.yml on Bogdanp/dramatiq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dramatiq-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: dramatiq-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 127.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for dramatiq-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2aa244b4098e154600c47cdb2c04cec6c3af44e9e159c319c6fc8b6f0ba90e
MD5 b1c1f6eb5ccbbd041ff2f805e9013d37
BLAKE2b-256 ef57a9be0b205b24e794c833a5295497f914776eb4d606d5a25a5b290e8b75ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for dramatiq-2.2.0-py3-none-any.whl:

Publisher: release.yml on Bogdanp/dramatiq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page