8000 GitHub - tnm/brukva: Asynchronous Redis client that works within Tornado IO loop.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ brukva Public
forked from kmerenkov/brukva

Asynchronous Redis client that works within Tornado IO loop.

License

Notifications You must be signed in to change notification settings

tnm/brukva

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

note!

the latest, greatest brukva is evilkost's fork. You'll want that one.

brükva

Asynchronous Redis client that works within Tornado IO loop.

Usage

>>> import brukva
>>> c = brukva.Client()
>>> c.connect()
>>> def on_result(result):
       (error, data) = result
       print data or error
>>> 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
True
bar
ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value

Tips on testing

Run tests with the following command:

nosetests -s -w tests --nologcapture

Credits

brukva is developed and maintained by Konstantin Merenkov

License

See LICENSE file. Long story short: WTFPL v2

About

Asynchronous Redis client that works within Tornado IO loop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0