Skip to content
Python RESTful interface to Redis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md

README.md

PyRESTRedis

Python RESTful simplified interface to Redis

To use it, have Redis server running, then run:

$ python PyRESTRedis.py

and try Redis commands on port 8379:

to know which services are available: http://127.0.0.1:8379

{ "REDIS SERVICES": "INFO, GET, SET, EXISTS, PUBLISH, KEYS, SADD, SMEMBERS, HSET, HGET, HGETALL, /redis...." }

to get information about the available Redis server: http://127.0.0.1:8379/info

to set a key with its value: http://127.0.0.1:8379/SET/mykey/1

{ "SET": true }

to read a key content: http://127.0.0.1:8379/GET/mykey

{ "GET": "1" }

to check if a key exists: http://127.0.0.1:8379/EXISTS/mykey

{ "EXISTS": true }

to publish data to a Redis channel: http://127.0.0.1:8379/PUBLISH/myChannel/myData

{ "PUBLISH": 1 }

if the channel exists, otherwise:

{ "PUBLISH": 0 }

to get a list of keys from a pattern: http://127.0.0.1:8379/KEYS/_pattern_

other commands: sadd, smembers, hset,hget, hgetall.

Otehrs Redis commands with up to 3 arguments can be used with: http://127.0.0.1:8379/redis/_command_/_arg1_../_arg3_

Dependencies

You can’t perform that action at this time.