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)
Release files for pywrapper 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pywrapper-0.1.tar.gz | 943 Bytes | Details |
Release files / pywrapper-0.1.tar.gz
| Download URL | pywrapper-0.1.tar.gz |
|---|---|
| Size | 943 Bytes |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fb7212ff3158544257215e86597a9aa1b2dfc26dd6b8343847b2f375d9e7c6f
|
|
BLAKE2b-256 checksum How to use checksums |
99702921c783668ad3dc98829651000c224f597ce1c17e3ba590db43af61ab67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |