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 --upgrade pyssdb
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-2017 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
Built Distributions
File details
Details for the file pyssdb-0.4.2.tar.gz
.
File metadata
- Download URL: pyssdb-0.4.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7085eee879136cdfcfbb6b4df1bea4820cfce57c8cf75be5f905644b2524614e |
|
MD5 | 6dbcc4bc594adb37587e18c00452dfb0 |
|
BLAKE2b-256 | 212a93cbcff3945fb0405b18a46ca4979e59ce7bada01b536ac48934ba462539 |
File details
Details for the file pyssdb-0.4.2-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: pyssdb-0.4.2-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c04d3f63088f7b2f1d2f58c9a9514f0f71c3d12f492941aabb424b0a9e44f7c |
|
MD5 | b7103e328cf7d0564e0e940520a9a08c |
|
BLAKE2b-256 | c49e9038b0c603e239033afca058939ac437ec45a6b5aebd4d7bf3f19e49deb0 |
File details
Details for the file pyssdb-0.4.2-py3-none-manylinux1_i686.whl
.
File metadata
- Download URL: pyssdb-0.4.2-py3-none-manylinux1_i686.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70bb4e9e562ccf9565079d4ef188e265bf42b4bbe0bf4b65d46572f8903612fc |
|
MD5 | 147f04f2f97f854a39f30ed826c27a5c |
|
BLAKE2b-256 | 9b7aa6d2aa9826b0d951404cb8ec1eb39fea4a8bb0f04b8f04a476504bcb3527 |
File details
Details for the file pyssdb-0.4.2-py2-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: pyssdb-0.4.2-py2-none-manylinux1_x86_64.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18746151ad22695ebc0966b573b7cf52ef0d160d284ab88b6e6784221e83b63f |
|
MD5 | eb7e80b9c7ddb2d8eff21ff5215251a1 |
|
BLAKE2b-256 | f0fb710b8e504e0520465a0a99b875b265466278468b6f84e5c120fe6fe98bf6 |
File details
Details for the file pyssdb-0.4.2-py2-none-manylinux1_i686.whl
.
File metadata
- Download URL: pyssdb-0.4.2-py2-none-manylinux1_i686.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a950c4ef7593acc29cab3da025afadf0e31b917824d611e84d6f4ab37296dfd1 |
|
MD5 | a66416ac903b73cdccf8af8fe694e338 |
|
BLAKE2b-256 | 8423ebe22765b786fe8f37baab0743eb1911b341a73afe0978d73a39d42d0efb |