Skip to main content

Integrate amqp into guillotina

Project description

# guillotina_amqp Docs

Integrates aioamqp into guillotina.

## Configuration

Example docs:

"amqp": {
"host": "localhost",
"port": 5673,
"login": "guest",
"password": "guest",
"vhost": "/",
"heartbeat": 800

## Dependencies

Python >= 3.6

## Installation

This example will use virtualenv::

virtualenv .
./bin/pip install .[test]

## Running

Most simple way to get running::


## Queue tasks

from guillotina_amqp import add_task
await add_task(my_func, 'foobar', kw_arg='blah')

## With decorators

from guillotina_amqp import task

async def my_func(foo):

await my_func('bar')

## Run the worker

g amqp-worker

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

guillotina_amqp-1.0.2.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

guillotina_amqp-1.0.2-py3-none-any.whl (15.8 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