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.8.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a768d8d5c225026f2b3bd99f9658d7dd414456946f3dc77d067524401b0d92ad |
|
MD5 | bd9cf0b00f32d0e8b4945aec3bbd540e |
|
BLAKE2b-256 | b49bf14ede97d979775b45bc5b76299dd505384c35f19ffa3a01ec9cc1cfc86e |