Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start modifying documentation

  • Loading branch information...
commit 1f2999d63c2630be16b68ee6b4cc616372805551 1 parent 62a1f6b
Adam Lindsay authored
Showing with 22 additions and 30 deletions.
  1. +0 −13 INSTALL
  2. +21 −16 README.rst
  3. +1 −1  redish/proxy.py
View
13 INSTALL
@@ -1,19 +1,6 @@
Installation
============
-You can install ``redish`` either via the Python Package Index (PyPI)
-or from source.
-
-To install using ``pip``,::
-
- $ pip install redish
-
-
-To install using ``easy_install``,::
-
- $ easy_install redish
-
-
If you have downloaded a source tarball you can install it
by doing the following,::
View
37 README.rst
@@ -2,17 +2,35 @@
redish - Pythonic Redis abstraction built on top of redis-py
============================================================================
-:Version: 0.0.1
+:Version: 0.0.1.1
Introduction
============
+By mixing the original redish's type system with the original redis-py's Redis
+object, give a different sort of transparent access to the key-value store
+without pickling/unpickling.
+
Braindump::
- >>> from redish.client import Client
- >>> x = Client()
+ >>> from redish.proxy import Proxy
+ >>> x = Proxy()
# Key/Value
+ >>> x["foo"] = "bar"
+ >>> x["foo"]
+ 'bar'
+ >>> del(x["foo"])
+ >>> x["foo"]
+ Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
+ File "redish/proxy.py", line 29, in __getitem__
+ raise KeyError(key)
+ KeyError: 'foo'
+
+
+
+ >>>
>>> x["foo"] = {"name": "George"}
>>> x["foo"]
{'name': 'George'}
@@ -59,19 +77,6 @@ Braindump::
Installation
============
-You can install ``redish`` either via the Python Package Index (PyPI)
-or from source.
-
-To install using ``pip``,::
-
- $ pip install redish
-
-
-To install using ``easy_install``,::
-
- $ easy_install redish
-
-
If you have downloaded a source tarball you can install it
by doing the following,::
View
2  redish/proxy.py
@@ -26,7 +26,7 @@ class Proxy(Redis):
def __getitem__(self, key):
typ = self.type(key)
if typ == 'none':
- raise KeyError
+ raise KeyError(key)
elif typ == 'string':
return int_or_str(self.get(key))
else:
Please sign in to comment.
Something went wrong with that request. Please try again.