Awesome Open Source
Awesome Open Source


|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


  • 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.


A simple message forwader, from ``source-queue`` to ``destination-queue``:

.. code:: python

    from import SQSHandler
    from import SQSRoute
    from loafer.managers import LoaferManager

    routes = [
        SQSRoute('source-queue', handler=SQSHandler('destination-queue')),

    if __name__ == '__main__':
        manager = LoaferManager(routes)


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

.. _Read the Docs:

.. |Docs| image:: :target: .. |CI Build Status| image:: :target: .. |Coverage Status| image:: :target: .. |Requirements Status| image:: :target: .. |Scrutinizer Code Quality| image:: :target: .. |Code Climate| image:: :target: .. |PyPI Version| image:: :target: .. |PyPI License| image:: :target: .. |PyPI latest| image:: :target:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (55,261
python3 (1,670
microservice (383
asyncio (282
queue (185
sns (32
sqs (27
dispatcher (19