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 MessageReceiver

@inject
def my_function(queue: MessageReceiver = 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.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

pyApp_Messaging-0.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pyApp-Messaging-0.2.0.tar.gz.

File metadata

  • Download URL: pyApp-Messaging-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for pyApp-Messaging-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b4080e5e9d9b900d826658851ddf8a256ec12e8cfbd558733ac6e2f29027bd1
MD5 a0c7a6158d9d5a4dabe126c6cde4be53
BLAKE2b-256 582b86303432d5433a371b5aaec8ca26bea9554dac6bc2a7bfcd6b3e975d9615

See more details on using hashes here.

File details

Details for the file pyApp_Messaging-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyApp_Messaging-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for pyApp_Messaging-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd340ec5f4af7ba02e5930b66f47224af4691a602a56c2149b6234ef0921672
MD5 1e05c681d06a611af952e6605e36d22e
BLAKE2b-256 15aa0f0ba8bbb25c86655520ed76bb56193c8b5bd30358d9b0936a551f8eb86c

See more details on using hashes here.

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