Skip to main content
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!

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: http://www.rabbitmq.com/tutorials/tutorial-five-python.html

Goals

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:
    consumer.attach_action(...)
    consumer.handle_messages(...)

or for even more control of exchanges and queues:

from rabbit import Consumer

with Consumer(uri) as consumer:
    consumer.declare_exchange(...)
    consumer.declare_queue(...)
    consumer.attach_action(...)
    consumer.handle_messages(...)

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/test_mquri.py for more details

Release History

Release History

This version
History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.02

History Node

0.0.01

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
thumper-0.0.13.tar.gz (160.4 kB) Copy SHA256 Checksum SHA256 Source Apr 29, 2013

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