Skip to main content

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


This settings are requiered for the command run


AMQP server ip


AMQP server Virtual Host


AMQP server User name for the virtual host


Username's password


Which queue listen to


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


Use pip to install from PyPI::

pip install djamqpconsumer


Add ``djamqpconsumer`` to your file::


Use with 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

Project details

Download files

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

Source Distribution (7.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page