Asynchronous message dispatcher for concurrent tasks processing
Project description
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
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
olist-loafer-3.0.9.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file olist-loafer-3.0.9.tar.gz
.
File metadata
- Download URL: olist-loafer-3.0.9.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a97e9ddccf086a1a794340d0748db3a44c1ee0c0bb8e60c78a02bfb7fd1159 |
|
MD5 | 2cef75fdbf910723c6e219eb9b3fd12b |
|
BLAKE2b-256 | 7774be79bc530ff708a690345a2ebda733dba4668f0df943a631d79e19f2eb44 |
File details
Details for the file olist_loafer-3.0.9-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-3.0.9-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d886a774b159321037ff428e92bd8542b25cdf472f113028e40ec666fb71c28 |
|
MD5 | 5f1c3a21b1423966a4492b9e7469bc4d |
|
BLAKE2b-256 | adaae3691cb820edba6648ab7451a7abbb4038c55ab004e423d73017898dca1b |