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.4.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for kv_sqlite_sync-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1248dd41d79324f0f196e7481e72008253babf1dbd948c96fccd3bdaf3a8af7d |
|
MD5 | df06fb3dcdada14edc9f0d41f89d6897 |
|
BLAKE2b-256 | a3ba61be7baf250aeea5b1d44d7c00ffc3b5c92cc6e5398cc5bc2ac483dbf345 |