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.0a2.tar.gz
(18.3 kB
view details)
Built Distribution
File details
Details for the file olist_loafer-6.0.0a2.tar.gz
.
File metadata
- Download URL: olist_loafer-6.0.0a2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6273ef305f9a94c9d00519edf84aff591904ff5f337de1e57aec5e5dbb81bfee |
|
MD5 | d79f966ecbfeb9fdfd456be629c0fa72 |
|
BLAKE2b-256 | 43d531a49b04c17848c984ee08506a5e4d1a39d681ebf73ce8b8d23928b902b8 |
File details
Details for the file olist_loafer-6.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-6.0.0a2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875079ac93415ba50c28be10215ed1393d17aed3ca80427eba511f9b05110030 |
|
MD5 | 6db83f70624ca283c085f51a54e097e1 |
|
BLAKE2b-256 | f36891d7e5401a62345c413089cc9b2a107e06238489a7214b6dd1b34fd3f878 |