Skip to content
Asynchronous Redis client that works within Tornado IO loop.
Python Shell
Find file
Pull request Compare This branch is 65 commits ahead, 1 commit behind kmerenkov:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
brukva
demos
tests
.gitignore
LICENSE
README.md
redis.conf
run_nose.sh
setup.py
show_coverage.py

README.md

brükva

Asynchronous Redis client that works within Tornado IO loop.

Usage

Input: import logging logging.basicConfig() import brukva c = brukva.Client() c.connect() def on_result(result): print result c.set('foo', 'bar', on_result) c.get('foo', on_result) c.hgetall('foo', on_result) c.connection._stream.io_loop.start() # start tornado mainloop

Output: True bar ERROR:brukva.client:ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value

Tips on testing

Run tests with the following command:

./run_nose.sh

Credits

brukva is developed and maintained by Konstantin Merenkov

License

See LICENSE file. Long story short: WTFPL v2

Something went wrong with that request. Please try again.