Skip to main content

An SSDB Client Library for Python3.

Project description

https://travis-ci.org/daiooo/ssdb3.png Latest Version Supported Python versions License

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

  • ssdb3 is simple, has no depencencies other than the Python Standard Library.

  • ssdb3 is pure Python, and is compatible with gevent.

  • ssdb3 is thread-safe.

Installation

pip install --upgrade ssdb3

Usage

Here is a short example:

>>> import ssdb3
>>> c = ssdb3.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.

python setup.py sdist build

sudo pip install twine twine upload dist/*

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

ssdb3-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file ssdb3-0.0.1.tar.gz.

File metadata

  • Download URL: ssdb3-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

File hashes

Hashes for ssdb3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 86fd9454a2505c2970c966c4657c4e5edd4d0ea995c610c43b99cd04bba61b63
MD5 b5b684e138bd489757bef9fddd9c7c30
BLAKE2b-256 0a42c9f68ac0d694b0b53a520c073219eda7cbde08d1b2a6722296d11d28f29a

See more details on using hashes here.

Supported by

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