Skip to main content

A SSDB Client Library for Python.

Project description

https://travis-ci.org/ifduyue/pyssdb.png https://badge.fury.io/py/pyssdb.png https://pypip.in/d/pyssdb/badge.png

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.

Source Distribution

pyssdb-0.2.zip (7.5 kB view details)

Uploaded Source

File details

Details for the file pyssdb-0.2.zip.

File metadata

  • Download URL: pyssdb-0.2.zip
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyssdb-0.2.zip
Algorithm Hash digest
SHA256 caa7ae1b56a130fb0b407063f89205035edaec7c81f303060e1856653e6719b5
MD5 651aa7f356ce3ead24332f34478e3fa7
BLAKE2b-256 b5dcd566424b5f7cba8f2aa38d183d49952e9a3af5032eed29c79e7be9e1250f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page