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.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d584b93953da268f8d2c86722d6b7e100bd1cd54faba7f68ab3c165d6943cc3a |
|
MD5 | 8b093bebdb3d2e21d6830a51684e444c |
|
BLAKE2b-256 | 2406b71b429bc3561f185ba1d5f6c52e11fecd28c4c268cf80d273a825ca3c5a |