Skip to content

📨 Standard Message Queuing Interface for pyApp

License

Notifications You must be signed in to change notification settings

pyapp-org/pyapp-messaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyApp - Messaging

Let use handle the boring stuff!

ReadTheDocs

The messaging extension provides an abstract interface to various messaging implementations. This lets your application seamlessly migrate from AMQP to SQS without any changes to your main application code.

Note

The primary focus of work is on asyncio based queues.

Installation

Install using pip or pipenv:

# Using pip
pip install pyapp-Messaging

# Using pipenv
pipenv install pyapp-Messaging

Usage

This library is easiest used with the injection framework eg:

from pyapp.injection import inject, Args
from pyapp_ext.messaging.aio import MessageReceiver

@inject
def my_function(queue: MessageReceiver = Args(name="job_queue")):
    async for msg in queue.listen():
        print(msg)

About

📨 Standard Message Queuing Interface for pyApp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages