asyncio-based implementation of AMQP client
Project description
Usage example
from asyncio import get_event_loop, coroutine from colibri import Connection, BasicMessage @coroutine def go(): c = Connection() msg = BasicMessage('test message') with (yield from c): channel = c.channel() with (yield from channel): yield from channel.exchange_declare('otherex', type='direct') yield from channel.queue_declare('otherqueue') yield from channel.queue_bind('otherqueue', 'otherex', 'route') yield from channel.basic_publish(msg, 'otherex', 'route') res = yield from channel.basic_get('otherqueue') print("this is the result: ", res.body) get_event_loop().run_until_complete(go())
Installation
Using pip:
$ pip install colibri
From the source (requires virtualenv or root):
$ setup.py install
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
colibri-0.0.1.tar.gz
(19.8 kB
view details)
File details
Details for the file colibri-0.0.1.tar.gz
.
File metadata
- Download URL: colibri-0.0.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910f6210d444b2a6a763cc69cbbc4f4199c26e49e690b6204eeffad7871376ae |
|
MD5 | 5de013152a17317b3086853a162bfccb |
|
BLAKE2b-256 | 74cbdf1b3e939c3f9b2f33dcf1f848ab430c145632e7180de9befe1b351d66c4 |