Key-Value interface over SQLite. Supports any datatype, including JSON and BLOB
Project description
Sqlite Kv (Sync)
Synchronous Key-Value interface over SQLite. Supports any datatype, including JSON and BLOB
Usage
import json
from sqlite_kv import SQLiteKV
api = await SQLiteKV.at(
db_path='mydb.sqlite', table='my-jsons',
dtype='JSON', parse=json.loads, dump=json.dumps
)
await api.upsert('my-image', dict(hello='world'))
await api.read('my-image') # dict(hello='world')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kv_sqlite_sync-0.1.9.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72ea41b051d0ec73b557bef5c38b04ee7436196ef14bbe8a0d4b857d908bf431 |
|
MD5 | 5cf365dbe56c23b77d10c1dad095fba8 |
|
BLAKE2b-256 | 46d61c23a318653e02221fac4030585c68898e16d86f6a91373fc5240c164e23 |