Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 50 lines (35 sloc) 1.107 kb
0cbef57 @kmerenkov Renamed project from rutabaga to brukva
kmerenkov authored
1 brükva
e3f945f @kmerenkov Added README
kmerenkov authored
2 ========
3
f98f7ff @evilkost fix #3: broken sample usage in README
evilkost authored
4 Asynchronous [Redis](http://redis.io/) client that works within [Tornado](http://tornadoweb.org/) IO loop.
e3f945f @kmerenkov Added README
kmerenkov authored
5
6
7 Usage
8 -----
9
f98f7ff @evilkost fix #3: broken sample usage in README
evilkost authored
10 Input:
11 import logging
12 logging.basicConfig()
13 import brukva
14 c = brukva.Client()
15 c.connect()
16 def on_result(result):
17 print result
18 c.set('foo', 'bar', on_result)
19 c.get('foo', on_result)
20 c.hgetall('foo', on_result)
21 c.connection._stream.io_loop.start() # start tornado mainloop
22
23 Output:
e3f945f @kmerenkov Added README
kmerenkov authored
24 True
25 bar
f98f7ff @evilkost fix #3: broken sample usage in README
evilkost authored
26 ERROR:brukva.client:ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value
e3f945f @kmerenkov Added README
kmerenkov authored
27 ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value
28
d5db86f @kmerenkov Updated readme (added test command)
kmerenkov authored
29 Tips on testing
30 ---------------
31
32 Run tests with the following command:
33
f98f7ff @evilkost fix #3: broken sample usage in README
evilkost authored
34 ./run_nose.sh
d5db86f @kmerenkov Updated readme (added test command)
kmerenkov authored
35
36
e3f945f @kmerenkov Added README
kmerenkov authored
37 Credits
38 -------
0cbef57 @kmerenkov Renamed project from rutabaga to brukva
kmerenkov authored
39 brukva is developed and maintained by [Konstantin Merenkov](mailto:kmerenkov@gmail.com)
e3f945f @kmerenkov Added README
kmerenkov authored
40
41 * Inspiration: [redis-py](http://github.com/andymccurdy/redis-py)
42 * Third-party software: [adisp](https://code.launchpad.net/adisp)
43
661fc9e @kmerenkov Added LICENSE, mentioned it in readme.
kmerenkov authored
44
45 License
46 -------
47 See LICENSE file.
48 Long story short: WTFPL v2
49
Something went wrong with that request. Please try again.