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-5.0.0.tar.gz
(49.2 kB
view details)
Built Distribution
File details
Details for the file olist_loafer-5.0.0.tar.gz
.
File metadata
- Download URL: olist_loafer-5.0.0.tar.gz
- Upload date:
- Size: 49.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6756b97b46a8d79964304e006e6450dcb61e5c6717a604d516cd57ff81ecb946 |
|
MD5 | 69986d56426201fd919dc996374ef136 |
|
BLAKE2b-256 | 134f14bc2b1d6767183ff0857021f71278fd96a408af00235bdc07b41bbc594b |
File details
Details for the file olist_loafer-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: olist_loafer-5.0.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c306ac8d662bdf6c20820256c542a7afadc30b8be9adbe1b09faba8f836bc6 |
|
MD5 | 196d1e62eaac1ab26ef8ec0a903d8163 |
|
BLAKE2b-256 | 6f2605bd51f18910c6778f190f7ed2e42a18543810beb681ecd65d5a34c7812c |