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.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e6c652f0b2a8e66b589077049506ab2b3f3facfdff97a08cf5cfc0b43703b9 |
|
MD5 | aba59bf5945820da70ae1eaf3275fd49 |
|
BLAKE2b-256 | edd984d57ac33e377013e4df1bba7096c332275a55f65961a7dbd0a63c325668 |