https://github.com/pyapp-org/pyapp-messaging
📨 Standard Message Queuing Interface for pyApp
https://github.com/pyapp-org/pyapp-messaging
Last synced: over 1 year ago
JSON representation
📨 Standard Message Queuing Interface for pyApp
- Host: GitHub
- URL: https://github.com/pyapp-org/pyapp-messaging
- Owner: pyapp-org
- License: other
- Created: 2019-07-05T09:24:28.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2022-09-29T00:02:25.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T13:26:46.913Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 128 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
#################
pyApp - Messaging
#################
*Let use handle the boring stuff!*
.. image:: https://github.com/pyapp-org/pyapp-messaging/workflows/Python%20testing/badge.svg
:target: https://docs.pyapp.info/
:alt: 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)