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.7.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for olist_loafer-3.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3c2ffa555d49b1c272f104726255970da0f7cbe2d27b202535b5de8d3c9389 |
|
MD5 | b1322971503a0855661e71e5efda57d5 |
|
BLAKE2b-256 | c05f4306f7569fa84a8d3b956542b2547ecf2895262e0f22018c356f3e89985f |