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-6.0.0a1.tar.gz
(18.4 kB
view details)
Built Distribution
File details
Details for the file olist_loafer-6.0.0a1.tar.gz
.
File metadata
- Download URL: olist_loafer-6.0.0a1.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd07759657f7c61654b97991633baa4de0bc32b2635edf89fc92426659f67265 |
|
MD5 | 6a6e036a81ba3b523fb54f81f36b42ff |
|
BLAKE2b-256 | 913e8ac07ba794e3f3b220914760c04ead7acc180da8c6f17ee7ca5de0d0def0 |
File details
Details for the file olist_loafer-6.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-6.0.0a1-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcdb7a4fa4f0fcb2333fb197488533086044c474d64af3082a19d806cc735087 |
|
MD5 | 0a854fe8fca5d9ab18bee5ee54bd8172 |
|
BLAKE2b-256 | ea0d1f9134961b3adab033d1599a8fae23824eb7416a442f50d5e63df2f21229 |