Skip to main content

Background Processing for Python 3.

Project description

remoulade

CircleCI PyPI version Documentation

A fast and reliable distributed task processing library for Python 3. Fork of dramatiq.io


Changelog: https://remoulade.readthedocs.io/en/latest/changelog.html
Documentation: https://remoulade.readthedocs.io


Installation

If you want to use it with RabbitMQ

    $ pipenv install 'remoulade[rabbitmq]'

or if you want to use it with Redis

   $ pipenv install 'remoulade[redis]'

Quickstart

  1. Make sure you've got RabbitMQ running, then create a new file called example.py:
from remoulade.brokers.rabbitmq import RabbitmqBroker
import remoulade
import requests
import sys

broker = RabbitmqBroker()
remoulade.set_broker(broker)


@remoulade.actor
def count_words(url):
    response = requests.get(url)
    count = len(response.text.split(" "))
    print(f"There are {count} words at {url!r}.")


broker.declare_actor(count_words)

if __name__ == "__main__":
    count_words.send(sys.argv[1])
  1. In one terminal, run your workers:
   $ remoulade example
  1. In another, start enqueueing messages:
   $ python3 example.py http://example.com
   $ python3 example.py https://github.com
   $ python3 example.py https://news.ycombinator.com

Visit the user guide to see more features!.

Dashboard

Checkout SuperBowl a dashboard for real-time monitoring and administrating all your Remoulade tasks. See the current progress, enqueue, requeue, cancel and more ... Super easy to use !.

License

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

remoulade-0.31.0.tar.gz (75.8 kB view details)

Uploaded Source

Built Distribution

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

remoulade-0.31.0-py3-none-any.whl (123.1 kB view details)

Uploaded Python 3

File details

Details for the file remoulade-0.31.0.tar.gz.

File metadata

  • Download URL: remoulade-0.31.0.tar.gz
  • Upload date:
  • Size: 75.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for remoulade-0.31.0.tar.gz
Algorithm Hash digest
SHA256 6e8be82c5d0c665b241192385bfd70f9094825453ad4c7def0d960ea850e728a
MD5 4328adcf46fa8fc510957de724886a67
BLAKE2b-256 bd28f22e500e9e0a16436c54079e7122d689cf5f3f31a7bc23ebd95c2ec60b4b

See more details on using hashes here.

File details

Details for the file remoulade-0.31.0-py3-none-any.whl.

File metadata

  • Download URL: remoulade-0.31.0-py3-none-any.whl
  • Upload date:
  • Size: 123.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for remoulade-0.31.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45ec3fb535e85e389633c853d4cf67e8f318db1e876c8eeac855cf34fe2074a9
MD5 52c8b8e59c3bcebd51f9e999e0b039f1
BLAKE2b-256 80d3ba1e297467afef80468066e19dae1cea58e0820d3965ddaa9015deb53bc2

See more details on using hashes here.

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