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.2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file kv-sqlite-sync-0.1.2.tar.gz
.
File metadata
- Download URL: kv-sqlite-sync-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1b0e68e70a42d823c70c079644e8ebc314942c297181354662d2f07c32413f |
|
MD5 | 6b617b958e80ee4b99b70b15bd254943 |
|
BLAKE2b-256 | 97f00a45d5e637cfbbd0c929e6a2de4325cd529d65e1c76e3ef750999c4b4f29 |
File details
Details for the file kv_sqlite_sync-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808ebe80e57c6963042e114a5e5d7217e4c81b7064215ba1f682dd61103c4969 |
|
MD5 | fb06323f07e6a8e3e097be2c2dbd9e4a |
|
BLAKE2b-256 | 224c18cea305796671fda78b9b15e26949c2c7b4ca986061fb880967f879a2d9 |