Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pywrapper, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pywrapper-0.1.tar.gz (943 Bytes) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page