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 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


Download files

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

Source Distributions

pyssdb-0.1.2.zip (7.5 kB view details)

Uploaded Source

pyssdb-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

pyssdb-0.1.2.tar.bz2 (4.7 kB view details)

Uploaded Source

File details

Details for the file pyssdb-0.1.2.zip.

File metadata

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

File hashes

Hashes for pyssdb-0.1.2.zip
Algorithm Hash digest
SHA256 a77d30a796e32c3046cdbd6f83efe6ae93d54a45c07ee4edbc6dc333ed65ae41
MD5 0b12751d0f356a47d8d4054ac624616c
BLAKE2b-256 123e453e2ddee7c1d889eb513af4e9bfb8b3c67ea04222e30562db8d35ab5453

See more details on using hashes here.

File details

Details for the file pyssdb-0.1.2.tar.gz.

File metadata

  • Download URL: pyssdb-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyssdb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6538bafadfacecbabff0f9807954a39c22708e24201c1f90af1664cde36e03ba
MD5 478e39c93396ccd0037c1e84bec79583
BLAKE2b-256 6e467fb4fd6e0d2788c35e88f2f89556703f81066354c2cf56a929fb5d5c3e03

See more details on using hashes here.

File details

Details for the file pyssdb-0.1.2.tar.bz2.

File metadata

  • Download URL: pyssdb-0.1.2.tar.bz2
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyssdb-0.1.2.tar.bz2
Algorithm Hash digest
SHA256 c9734831fe727e9f72bd2438d2985876fb32bfb45586b1dc428db7bab52bb8cc
MD5 6ca9cd697998badb23d9469bbd44ab01
BLAKE2b-256 a63bb006a1ca44bf3a34e279089b872363791be81ad7694a955d1dbe63a7472d

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