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:
./bin/guillotina
Queue tasks
code:
from guillotina_amqp import add_task await add_task(my_func, 'foobar', kw_arg='blah')
With decorators
code:
from guillotina_amqp import task @task async def my_func(foo): print(foo) await my_func('bar')
Run the worker
command:
g amqp-worker
Project details
Release history Release notifications | RSS feed
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.8.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for guillotina_amqp-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7797891a830659ec814c7555bbad5bd306b903bda18098ec06d95bca3e8d56ac |
|
MD5 | 76f205e2a8e5df3503a3b4e72d8beb01 |
|
BLAKE2b-256 | 307107f6b7372c26cee7100c8a666b2439c7434a62f100787fa6f18331ce8441 |