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

Uploaded Source

Built Distribution

olist_loafer-4.0.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file olist_loafer-4.0.0.tar.gz.

File metadata

  • Download URL: olist_loafer-4.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for olist_loafer-4.0.0.tar.gz
Algorithm Hash digest
SHA256 7c183d575427d50b8a0c74f8d2a1993bed846d3903d5aa0d9e8fadcc3bd9a07c
MD5 c9b5b37680a445b0f7895d85fcacf051
BLAKE2b-256 b4063202d64766e132608f7be9fcb8d8e25078a2a585169e79f3e9acb5e09096

See more details on using hashes here.

File details

Details for the file olist_loafer-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: olist_loafer-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for olist_loafer-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 281289bdcce9158b6a055a216d35ad686bf2d57c8611f60dae3ede3e108b97e3
MD5 259a37a9e676893b321fcba490f1ff27
BLAKE2b-256 12dc3368acc2b2eb44b8c2dd16b7805afab326e1479010f7fbb2218fe347c6f8

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