A lightweight python client with HTTP API for interacting with Redis.
- A Redis service. Example Docker command:
docker run --name test-redis -p 6379:6379 -d redis redis-server
- Python with pyyaml redis and Flask. Install using:
pip install pyyaml redis Flask
export FLASK_APP=client.py
export REDIS_HOST=localhost
export REDIS_PORT=6379
python -m flask run --host=0.0.0.0
docker build -t python-clientms .
docker run --name clientms --net=host -d -e REDIS_HOST=localhost -e REDIS_PORT=6379 -p 5000:5000 python-clientms
curl localhost:5000/
curl localhost:5000/write/cat
curl localhost:5000/read/<key>