Skip to main content

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 to run doctest.


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


$ 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

Project details

Download files

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

Files for litekv, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size litekv-0.6.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page