Coder Social home page Coder Social logo

cssdbpy's Introduction

cssdbpy ------

image

image

image

Cssdbpy is a simple 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

pip install cssdbpy

or

pip install https://github.com/deslum/cssdbpy/archive/master.zip

Example

from cssdbpy import Connection
from time import time
import md5

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

alternate text

cssdbpy's People

Contributors

deslum avatar osule avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.