My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: Python, Queue, Message, API, Django
Show all Featured downloads:
queues-0.5.tar.gz
Feeds:
People details
Project owners:
  mcroydon

This is a very simple API for interacting with lightweight queues. Currently queues that speak the memcached protocol, Amazon's SQS service, and Beanstalkd are supported. External backends can be easily defined and used as long as they conform to the BaseQueue API.

This library is designed to be configured either from a Django settings file or via environment variables. Heavy lifting is done by one of the backend libraries:

Example usage:

$ export QUEUE_BACKEND=memcached
$ export QUEUE_MEMCACHE_CONNECTION=localhost:21122
$ python
>>> from queues import queues
>>> q = queues.Queue('myname')
>>> q.write('test')
True
>>> len(q)
1
>>> q.read()
test
>>> queues.get_list()
['myname']
Backend Library License
sqs boto MIT
memcached python-memcached PSF
cmemcache GPL
beanstalkd beanstalkc APL-2.0
redisd (as of r12/0.4) redis MIT
zenqueued (as of r14/0.4) zenqueue MIT
dummy (as of r16/0.5) built-in (useful for single-threaded testing) MIT

Any comments or feedback would be appreciated. Please note that the API may change in future versions based on feedback and use.









Hosted by Google Code