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.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814fc6e0922c160773c31d76a89abc23c14d6cae817745fc8f1b38d21e212cda |
|
MD5 | d8aa1a2026e67d739acd01d3200c374f |
|
BLAKE2b-256 | 4ffa9dc140745b0e4973fb16cfa2363578600ca5be8660f1f386ccbf1c1f3238 |