A SSDB Client Library for Python.
Project description
pyssdb is an SSDB Client Library for Python. SSDB is a high performace key-value(key-string, key-zset, key-hashmap) NoSQL database, using Google LevelDB as storage engine.
pyssdb is simple, has no depencencies other than the Python Standard Library.
pyssdb is pure Python, and is compatible with gevent.
pyssdb is thread-safe.
Installation
$ pip install pyssdb --upgrade
Usage
Here is a short example:
>>> import pyssdb >>> c = pyssdb.Client() >>> c.set('key', 'value') 1 >>> c.get('key') 'value' >>> c.hset('hash', 'item', 'value') 1 >>> c.hget('hash', 'item') 'value' >>> c.hget('hash', 'not exist') is None True >>> c.incr('counter') 1 >>> c.incr('counter') 2 >>> c.incr('counter') 3 >>> c.keys('a', 'z', 1) ['counter'] >>> c.keys('a', 'z', 10) ['counter', 'key']
For more information, see the tutorial, which will explain most everything.
For the full list of SSDB commands, see this page.
License
Copyright (C) 2013-2014 Yue Du, Licensed under the 2-clause BSD license.
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 Distributions
File details
Details for the file pyssdb-0.1.1.zip
.
File metadata
- Download URL: pyssdb-0.1.1.zip
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87130f1052dffaaca5a2f97a60eacdd5e054e2a867391735b261bb28b28f24a1 |
|
MD5 | 904564979c522e22c93c22972bdf0189 |
|
BLAKE2b-256 | e4beaa249ce576e86849aabd8642e2b3508e43e42373bf2870d9bcc8d07e69ad |
File details
Details for the file pyssdb-0.1.1.tar.gz
.
File metadata
- Download URL: pyssdb-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676e93dd7e3a4d441393693a126deabbc9aabd491024400727541889ef0fe2c1 |
|
MD5 | 7320159d41e4fed07c8ab0329d9c82d4 |
|
BLAKE2b-256 | 551b3d1b0e7be63aacf6aff9be21fe7b7a3314fa9399c67bdf6cd54a05bb1ab8 |
File details
Details for the file pyssdb-0.1.1.tar.bz2
.
File metadata
- Download URL: pyssdb-0.1.1.tar.bz2
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e067d745cbea273395bef3c4d3fd2ce9a452c9c4ab65386fe7b64177ad451746 |
|
MD5 | 55f07addbe64dab79828957cf6a079f4 |
|
BLAKE2b-256 | 1c0b56c63dfad79f03e38ed41e5425abfc073a39b29a3153731ca56bb7fdc60f |