Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deslum/cssdbpy
Fastest SSDB client written on Cython. Production ready
https://github.com/deslum/cssdbpy
key-value leveldb python-client ssdb ssdb-client
Last synced: about 2 months ago
JSON representation
Fastest SSDB client written on Cython. Production ready
- Host: GitHub
- URL: https://github.com/deslum/cssdbpy
- Owner: deslum
- License: bsd-2-clause
- Created: 2016-05-05T21:58:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T18:41:15.000Z (over 7 years ago)
- Last Synced: 2024-08-08T23:24:26.805Z (5 months ago)
- Topics: key-value, leveldb, python-client, ssdb, ssdb-client
- Language: Python
- Homepage:
- Size: 874 KB
- Stars: 78
- Watchers: 6
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
cssdbpy
------.. image:: https://img.shields.io/pypi/v/cssdbpy.svg?maxAge=2592000?style=flat
:target: https://pypi.python.org/pypi/cssdbpy/.. image:: https://img.shields.io/badge/license-BSD-blue.svg
:target: https://raw.githubusercontent.com/deslum/cssdbpy/master/LICENSE
.. image:: https://img.shields.io/badge/python-2.x-yellow.svg
:target: https://pypi.python.org/pypi/cssdbpy/
.. image:: https://img.shields.io/badge/python-3.x-green.svg
:target: https://pypi.python.org/pypi/cssdbpy/| Cssdbpy is SSDB client written on Cython. Faster standard SSDB client.
| SSDB a high performance NoSQL database supporting many data structures, an alternative to Redis. http://ssdb.io/Install
-------.. code-block:: bash
pip install cssdbpy
or
.. code-block:: bash
pip install https://github.com/deslum/cssdbpy/archive/master.zip
Example
-------
.. code-block:: pythonfrom cssdbpy import Connection
from time import time
import md5if __name__ == '__main__':
conn = Connection('127.0.0.1', 8888)
for i in xrange(0, 1000):
md5word = md5.new('word{}'.format(i)).hexdigest()
create = conn.execute('hset','words', md5word, int(time()))
value = conn.execute('hget','words', md5word)
exists = conn.execute('hexists','words', md5word)
delete = conn.execute('hdel','words', md5word)
print md5word, value, create, exists, delete
print conn.execute('hscan', 'words', '', '', 100)
conn.execute('hclear','words')Documentation
-------------
http://cssdbpy.readthedocs.io/en/master/Benchmark
-------------MacBook Pro 2012 2,5 GHz Intel Core i5 4 ГБ 1600 МГц DDR3
80000 key/value fields.. image:: benchmark/bench.png
:height: 100px
:width: 200px
:scale: 50%
:alt: alternate text
:align: center