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.7.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 444edddfa1a76f2b6659b0ffcefcaab5fc68eaea17e25344d38219c23d5ff897 |
|
MD5 | 7b031a700641ad75e7a493cb9bc1a90c |
|
BLAKE2b-256 | 1265fa9f34367668d5fd05a01dd10e92b301a2e2978dea1a3a98e0610dfee4d4 |