Add support for Consul as a backend using the Key/Value store of Consul.
Consul has a HTTP API where through you can store keys with their values.
The backend extends KeyValueStoreBackend and implements most of the methods.
Mainly to set, get and remove objects.
This allows Celery to store Task results in the K/V store of Consul.
Consul also allows to set a TTL on keys using the Sessions from Consul. This way
the backend supports auto expiry of Task results.
For more information on Consul visit http://consul.io/
The backend uses python-consul for talking to the HTTP API. This package is fully
Python 3 compliant just as this backend is.
pip install python-consul
That installs the required package to talk to Consul's HTTP API from Python.
Using cached requests-2.7.0-py2.py3-none-any.whl
Collecting pycouchdb (from -r /opt/devel/celery/requirements/extras/couchdb.txt (line 2))
Using cached pycouchdb-1.13.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/t_/8b21_y5j4mdc1r8cslkyr9580000gn/T/pip-build-eSLwrL/pycouchdb/setup.py", line 10, in <module>
import pycouchdb
File "pycouchdb/__init__.py", line 10, in <module>
from .client import Server
File "pycouchdb/client.py", line 13, in <module>
from .resource import Resource
File "pycouchdb/resource.py", line 5, in <module>
import requests
ImportError: No module named requests