Wrapper For Key-Value Database (Memcached, Redis, TokyoTyrant ...)
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywrapper-0.1.tar.gz
(943 Bytes
view hashes)