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.8.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.8.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.8.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 | 01d63d12a6e4b48808c1c9684a733f930ca05286ae90d50fc7312806ac7a6a80 |
|
MD5 | 27aeb4bb019a01f46d8de01392920a35 |
|
BLAKE2b-256 | 35dc71d9618738e2f04df81fab68dc4c94206f00db110fc449ba2fff07b0ebf9 |
File details
Details for the file kv_sqlite_sync-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.8-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 | a768d8d5c225026f2b3bd99f9658d7dd414456946f3dc77d067524401b0d92ad |
|
MD5 | bd9cf0b00f32d0e8b4945aec3bbd540e |
|
BLAKE2b-256 | b49bf14ede97d979775b45bc5b76299dd505384c35f19ffa3a01ec9cc1cfc86e |