Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple kv store for Python

Project Description

LiteKV is a wrapper for sqlite3, it turns sqlite3 into a kv data store, and has similar APIs with redis-py.

Simply execute python -m litekv (if you have installed it) or python litekv.py to run doctest.

Usage

>>> db = LiteKV(reset=True)
>>> db.set('a', '1')
>>> db.get('a')
'1'
>>> db.set('a', '2')
>>> db.get('a')
'2'
>>> db.set('b', '3')
>>> list(db.keys())
['a', 'b']
>>> db.delete('a')
>>> db.get('a') is None
True

Benchmark

$ python -m litekv --benchmark
With rowid
Do 10000 inserts & reads
1215.88587897 Insertion per second
18041.2587533 Reads per second

Without rowid
Do 10000 inserts & reads
1182.05950852 Insertion per second
17828.1725067 Reads per second
Release History

Release History

This version
History Node

0.6

History Node

0.5

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
litekv-0.6.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source May 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting