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.11.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file olist_loafer-3.0.11.tar.gz
.
File metadata
- Download URL: olist_loafer-3.0.11.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Linux/5.15.68.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26dfc1f151b25baef90f6327f35718039ca063cd548686d4750a9d4065723190 |
|
MD5 | d1a6987ef5fc1a32d191dfbe21bee691 |
|
BLAKE2b-256 | f28518724e947008a2338814bf28fa8c5e881c6141ea11dff8cde345d812d32c |
File details
Details for the file olist_loafer-3.0.11-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-3.0.11-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Linux/5.15.68.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04a9f116d67831f4b30cfb1d461dc0a36e6daf20a4d559f50f38100786dd2b5 |
|
MD5 | 972e91b3f805d6ad58c00b3b3563cca7 |
|
BLAKE2b-256 | a41969f2c5585d7c45a3c1701b45843d91cfb1f7a1bcc844071389225ba2af2a |