skip to navigation
skip to content

Not Logged In

pywrapper 0.1

Wrapper For Key-Value Database (Memcached, Redis, TokyoTyrant ...)

Example:

# test memcached
>>> from pywrapper.kv import create_wrapper
>>> w = create_wrapper('memcached', host='127.0.0.1', port=11211)
>>> w.set("name", "smallfish")
>>> print w.get("name")
smallfish
>>> w.update("name", "bigfish")
>>> print w.get("name")
bigfish
>>> w.delete("name")
>>> print w.get("name")
None

# test redis
>>> w = create_wrapper('redis', host='127.0.0.1', port=6379, db=1)

# test tokyotyrant
>>> w = create_wrapper('tokyotyrant', host='127.0.0.1', port=1978)
 
File Type Py Version Uploaded on Size
pywrapper-0.1.tar.gz (md5) Source 2010-12-24 943B
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 19 downloads in the last week
  • 154 downloads in the last month