A SSDB Client Library for Python.
Project description
pyssdb is a 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 wiki 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 Distribution
pyssdb-0.1.0.tar.gz
(4.4 kB
view details)
File details
Details for the file pyssdb-0.1.0.tar.gz
.
File metadata
- Download URL: pyssdb-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd6ba056c1e23c3989db22bd530575e4fd53d44dee9eaacc7532cb724246c12 |
|
MD5 | d5a9815f1c6c20fa65ff1992b080739b |
|
BLAKE2b-256 | 8f776bf3687eefb7504740d92023388126f820bb33a355ec8eff15810f542439 |