Skip to main content

Simplifies interactions with RabbitMQ by focusing on design patterns based on Topic Exchanges.

Project description

Simplifies interactions with RabbitMQ by focusing on design patterns based on Topic Exchanges. More information can be found here:


Embrace Kenneth Reitz’s thoughts on the 90% rule, i.e. requests module.

Messages are serialized as needed, starting from no serialization for strings to json and falling back to yaml if the more simple open serialization methods are not capable of serializing the object/message. i.e. datetime/date/decimal/etc.

#!/usr/bin/env python

from rabbit import Producer

with Producer(uri) as producer:
    for message in <iterable/generator>:
        producer.publish(message, routing_key)
from rabbit import Consumer

with Consumer(uri, exchange, queue, routing_key) as consumer:

or for even more control of exchanges and queues:

from rabbit import Consumer

with Consumer(uri) as consumer:

uri is a messge queue uri in the form, mq://user:pass@host/vhost where mq://user:pass@localhost == mq://user:pass@localhost/

Within the uri you can pass user, password, host, port and vhost information. see thumper/test/ for more details

Project details

Download files

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

Files for thumper, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size thumper-0.0.13.tar.gz (160.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page