LiteKV - Redis like wrapper for sqlite3
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
Metadata
Release files for litekv 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| litekv-0.6.tar.gz | 2.4 kB | Without provenance | Details |
Release files / litekv-0.6.tar.gz
| Download URL | litekv-0.6.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
410171bbe020d3f200e086471e7caee3c3087ac4b121d191bf625cf8a6b32619
|
|
BLAKE2b-256 checksum How to use checksums |
bd8906e06787bdf9e3ca26aea2474acfc93445d7fb456c3fcd3d408babdd021d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for litekv 0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.