Redweb is a web interface to the Redis key-value store and server. It is written in Python, and is built on the Bottle micro-framework. With Redweb, you can easily interact with Redis through your web browser, utilizing POST functionality.
But Redweb is more than that, too. The Redweb source can be reused to create neat web applications that utilize Bottle and Redis. So Redweb is sort of like a reversible jacket -- you get two nice features for the price of one. Well, you get it for no price actually -- Redweb is MIT-licensed.
The basic idea derives from my super-simple RedBottle project.
Install and Run
Install Bottle and redis-py. Start your Redis server, head to the Redweb directory, and then:
The web interface will start on localhost, so point your browser to
The Python code lives at ** redweb.py, and the web template is at **/views/central.tpl. I've included some client-side JS form validation, as well.
What You Can Do
You will be able to add key-value pairs, return random values, append lists and sets, return and store intersection and union for sets, and a good deal more -- through an easy-to-use web interface. You can also use standard Redis syntax to search for keys, and you can delete keys.
The code is easily portable, and can be incorporated into simple, quick applications that utilize Bottle and Redis.
More and TODO:
The current TODO list (patches are welcome):
- Implement all Redis 2.0 functions
- Emphasize and add more monitoring features
- Add inline help for each command
- Option and ability to return values as JSON
A blog post about Redweb, with screenshots.
Author: Ted Nyman - @tnm8
Thanks to Antonio Ognio for Redis hash implementation.
Copyright (c) 2010 Ted Nyman
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.