Skip to main content

Asynchronous message dispatcher for concurrent tasks processing

Project description

PyPI latest Python versions License CircleCI Olist Sponsor

olist-loafer is an asynchronous message dispatcher for concurrent tasks processing, with the following features:

  • Encourages decoupling from message providers and consumers
  • Easy to extend and customize
  • Easy error handling, including integration with sentry
  • Easy to create one or multiple services
  • Generic Handlers
  • Amazon SQS integration

:information_source: Currently, only AWS SQS is supported


How to use

A simple message forwader, from source-queue to destination-queue:

from loafer.ext.aws.handlers import SQSHandler
from loafer.ext.aws.routes import SQSRoute
from loafer.managers import LoaferManager

routes = [
    SQSRoute('source-queue', handler=SQSHandler('destination-queue')),
]

if __name__ == '__main__':
    manager = LoaferManager(routes)
    manager.run()

How to contribute

Fork this repository, make changes and send us a pull request. We will review your changes and apply them. Before sending us your pull request please check if you wrote and ran tests:

make test

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

olist_loafer-5.0.0a1.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

olist_loafer-5.0.0a1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file olist_loafer-5.0.0a1.tar.gz.

File metadata

  • Download URL: olist_loafer-5.0.0a1.tar.gz
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for olist_loafer-5.0.0a1.tar.gz
Algorithm Hash digest
SHA256 4f93bc0bc826b871bcc97f513964f7357e132b5960bc87052b06dc08b68c467a
MD5 0f1a5dc90f16b8b30118a950402ae046
BLAKE2b-256 3b8f8011d4948c64c341b59d9e272b5118096bc8950cfe2ef126c91d8078943b

See more details on using hashes here.

File details

Details for the file olist_loafer-5.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for olist_loafer-5.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f76c4cd107b4d3b1cc6ef860f433d646b0f074c0c88e36b515a4d3387e333a66
MD5 18907983aaa6b48f91f99f6edb770a90
BLAKE2b-256 aca814ad234f44bce1e1daa5db31e9084b8883d360c8ee02ca9eeba268c660ce

See more details on using hashes here.

Supported by

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