Skip to main content

Background Processing for Python 3.

Project description

remoulade

Build Status PyPI version Documentation

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


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


Installation

If you want to use it with RabbitMQ

pipenv install 'remoulade[rabbitmq, watch]'

or if you want to use it with Redis

pipenv install 'remoulade[redis, watch]'

Quickstart

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

import remoulade
import requests
import sys

@remoulade.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:

remoulade 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

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.9.1.tar.gz (57.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: remoulade-0.9.1.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.6

File hashes

Hashes for remoulade-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d0f9218ff6461d8d599ebb532ccfef675d7d2f6b372bccb914dcb3d07f200240
MD5 2019541c66f48ea638b317f5ee7a4a6c
BLAKE2b-256 3b4f1b9b438aa8bcca3d90e6e54ccf28cd41dc073a5c514d0b0564537d8040a8

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