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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808ebe80e57c6963042e114a5e5d7217e4c81b7064215ba1f682dd61103c4969 |
|
MD5 | fb06323f07e6a8e3e097be2c2dbd9e4a |
|
BLAKE2b-256 | 224c18cea305796671fda78b9b15e26949c2c7b4ca986061fb880967f879a2d9 |