Skip to main content

Common messaging extension. Provides base messaging services that other service build on

Project description

Let use handle the boring stuff!

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.

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 import MessageQueue

@inject
def my_function(queue: MessageQueue = Args(name="job_queue")):
    queue.send_message("Do job A")

or using asyncio:

from pyapp.injection import inject, Args
from pyapp_ext.messaging.asyncio import MessageSender

@inject
async def my_function(sender: MessageSender = Args(name="job_queue")):
    await sender.send("Do job A")

API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyApp-Messaging-0.1.2.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

pyApp_Messaging-0.1.2-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page