This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
colibri-0.0.1.tar.gz (19.8 kB) Copy SHA256 Checksum SHA256 Source Sep 15, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting