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!

Blocking custom django command to consume a AMQP queue

Project Description
What is this
============

Adds a custom command which opens a blocking connection with an AMQP server and passes messages to a callback fuction

Settings
--------

This settings are requiered for the command run

``COM_BROKER``

AMQP server ip

``COM_VHOST``

AMQP server Virtual Host

``COM_USERNAME``

AMQP server User name for the virtual host


``COM_PASSWORD``

Username's password

``COM_QUEUE``

Which queue listen to

``CONSUMER_CALLBACK``

Path to the callback func. ex.: djamqpconsumer.printconsumer.printdata

Install
-------

Use pip to install from PyPI::

pip install djamqpconsumer


Usage
-----

Add ``djamqpconsumer`` to your settings.py file::

INSTALLED_APPS = (
...
'djamqpconsumer',
...
)

Use with manage.py::

manage.py consumer [debug]

0.6 (2014-03-27)
================
- Parse results to send nack/requeue commands
callback command must return a dict with
{'result': 0/1
'msg': String,
'retry': Bool}

- Use logging instead of printing

0.5 (2014-02-21)
================
- Add pika dependency
Release History

Release History

This version
History Node

0.7

History Node

0.5

History Node

0.4

History Node

0.3

History Node

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
djamqpconsumer-0.7.zip (7.0 kB) Copy SHA256 Checksum SHA256 Source Mar 27, 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