Skip to content

pyapp-org/pyapp.aio-pika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyApp - aio-pika

Let us handle the boring stuff!

This extension provides a client factory for aio-pika to allow connection parameters to be configured in a pyApp settings file. The extension also provides pyApp Messaging implementations of Message and Pub/Sub queue types.

The extension also provides checks to confirm the settings are correct.

Installation

Install using pip:

pip install pyapp-aio-pika

Install using pipenv:

pipenv install pyapp-aio-pika

Usage

API

Messaging Interface

The is the abstract interface defined by pyApp Messaging. Unless your application has very specific needs this is likely the best option.

To use the messaging interface use the factories defined by pyApp Messaging.

Both AsyncIO Message and Pub/Sub queue types are supported.

pyapp_ext.messaging.asyncio.DirectSender

Message sender, uses a direct exchange.

pyapp_ext.messaging.asyncio.FanOutReceiver

Pub/Sub queue publisher, uses fan-out exchange.

pyapp_ext.messaging.asyncio.Receiver

Message receiver, uses a persistent queue linked to an exchange.

pyapp_ext.messaging.asyncio.FanOutReceiver

Pub/Sub queue subscriber, uses a exclusive queue linked to an exchange.

Low Level

pyapp_ext.aio_pika.get_robust_connection(name: str = None) -> Connection

Get a "robust" connection from AIO Pika

pyapp_ext.aio_pika.get_connection(name: str = None) -> Connection

Get a connection from AIO Pika

About

pyApp Extension for AMQP (aio-pika)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages