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.5.tar.gz
(10.2 kB
view details)
Built Distribution
File details
Details for the file olist-loafer-3.0.5.tar.gz
.
File metadata
- Download URL: olist-loafer-3.0.5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.11 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1693bb8e641063eda389d0b97003b53bec1c8ae7b73f61bd29ad5db7e9b576b |
|
MD5 | 687b17a903b93d264f3fa5ecb830acba |
|
BLAKE2b-256 | 8b999c19d25b5a1660d5580ab7efd93d76ba46ee873321becfcaf6e198521496 |
File details
Details for the file olist_loafer-3.0.5-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-3.0.5-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.7.11 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba89974698f2f389a91aa87846eebc18958398c1ca2f4c158f4a82a0416b11a0 |
|
MD5 | 1bc467a89f138b69eec87c38ec6a16c9 |
|
BLAKE2b-256 | 2df2d675850a67f9522ee98a31c535504913a6bd9a36cc116594a62502cd7727 |