Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A SSDB Client Library for Python.

Project description

https://travis-ci.org/ifduyue/pyssdb.png Latest Version Supported Python versions License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyssdb, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size pyssdb-0.4.2-py2-none-manylinux1_i686.whl (4.3 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pyssdb-0.4.2-py2-none-manylinux1_x86_64.whl (4.3 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size pyssdb-0.4.2-py3-none-manylinux1_i686.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyssdb-0.4.2-py3-none-manylinux1_x86_64.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyssdb-0.4.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page