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.


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

Uploaded Source

File details

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

File metadata

  • Download URL: remoulade-0.17.0.tar.gz
  • Upload date:
  • Size: 65.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for remoulade-0.17.0.tar.gz
Algorithm Hash digest
SHA256 115a2c71b2bf5ebc12f6ad54228733f58c262bc4045a2da5545b2b8fb3342447
MD5 ab60a2244def58289b05b9e78e7706f1
BLAKE2b-256 f0af05b45caf45b4c886a7acf13df5f5004716027d25314eaea12a5bee69c425

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