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
============
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
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
djamqpconsumer-0.7.zip
(7.0 kB
view details)
File details
Details for the file djamqpconsumer-0.7.zip
.
File metadata
- Download URL: djamqpconsumer-0.7.zip
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8843db31f88b9c1cf22b7880712c1ee185328e6a93040f9b6982661fb5fdd59 |
|
MD5 | 28667a1b902ad75aee334269ff919590 |
|
BLAKE2b-256 | a4457411ecffb7e21062d2255afe397bce9c6d106da61c12b43bd9ec13bc9592 |