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.10.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c356ae8725945b7b8a80713799add98e5a52a7deb6bb2c553909d74ead300449 |
|
MD5 | 89a1071f1082c8c888f29057663fe9fe |
|
BLAKE2b-256 | 1c0bfac062db0d7be174619f87044d74f7a7702b4b809a36ddefbe094b0fef95 |