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 details)
File details
Details for the file pywrapper-0.1.tar.gz.
File metadata
- Download URL: pywrapper-0.1.tar.gz
- Upload date:
- Size: 943 Bytes
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fb7212ff3158544257215e86597a9aa1b2dfc26dd6b8343847b2f375d9e7c6f
|
|
| MD5 |
4eca7a47f209aed2c299aa3bf9e80a4f
|
|
| BLAKE2b-256 |
99702921c783668ad3dc98829651000c224f597ce1c17e3ba590db43af61ab67
|