https://github.com/pyapp-org/pyapp-messaging-aws
📨 pyApp Standard Message Queuing for AWS SQS/SNS
https://github.com/pyapp-org/pyapp-messaging-aws
Last synced: 12 months ago
JSON representation
📨 pyApp Standard Message Queuing for AWS SQS/SNS
- Host: GitHub
- URL: https://github.com/pyapp-org/pyapp-messaging-aws
- Owner: pyapp-org
- License: other
- Created: 2020-06-08T15:49:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T14:11:42.000Z (about 6 years ago)
- Last Synced: 2025-07-07T17:46:00.790Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
#######################
pyApp - Messaging - AWS
#######################
*Let us handle the boring stuff!*
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
:alt: Once you go Black...
`pyApp Messaging`_ support for AWS SQS and SNS. Currently only ASyncIO interfaces
are implemented.
.. _pyApp Messaging: https://github.com/pyapp-org/pyapp-messaging
Installation
============
Install using *pip*::
pip install pyapp-messaging-aws
Install using *pipenv*::
pipenv install pyapp-messaging-aws
Usage
=====
Interaction with AWS is via pyapp.aiobotocore_ extension, configuration of your
AWS credentials is required.
.. _pyapp.aiobotocore: https://github.com/pyapp-org/pyapp.aiobotocore
This package provides the following connection interfaces:
- ``pyapp_ext.messaging_aws.aio.SQSSender``
.. code-block:: python
SEND_MESSAGE_QUEUES = {
"sqs": (
"pyapp_ext.messaging_aws.aio.SQSSender",
{"queue_name": "my-queue"},
)
}
- ``pyapp_ext.messaging_aws.aio.SQSReceiver``
.. code-block:: python
RECEIVE_MESSAGE_QUEUES = {
"sqs": (
"pyapp_ext.messaging_aws.aio.SQSReceiver",
{"queue_name": "my-queue"},
)
}
- ``pyapp_ext.messaging_aws.aio.SNSSender``
.. code-block:: python
SEND_MESSAGE_QUEUES = {
"sns": (
"pyapp_ext.messaging_aws.aio.SNSSender",
# Topic name can also be an ARN
{"topic_name": "my-topic"},
)
}
- ``pyapp_ext.messaging_aws.aio.SNSSender``
Creates a SQS queue that is subscribed to the SNS topic to receive messages.
.. code-block:: python
RECEIVE_MESSAGE_QUEUES = {
"sns": (
"pyapp_ext.messaging_aws.aio.SNSReceiver",
{"topic_name": "my-topic"},
)
}