8000 GitHub - georgeyk/loafer: Asynchronous message dispatcher - Currently using asyncio and amazon SQS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

georgeyk/loafer

Repository files navigation

Loafer

PyPI latest PyPI Version PyPI License Docs

CI Build Status Coverage Status Requirements Status Scrutinizer Code Quality Code Climate


Loafer is an asynchronous message dispatcher for concurrent tasks processing.

Currently, only AWS SQS is supported

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

It requires Python 3.6+ and is very experimental at the moment, expect a lot of changes until the first major version.

Example

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()

Documentation

Check out the latest Loafer full documentation at Read the Docs website.

About

Asynchronous message dispatcher - Currently using asyncio and amazon SQS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

0