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.10.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.10.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.10.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646b34a4a6409bea12c5f70c4fe83e92809a755e7bca29488b7107178edd8b8f |
|
MD5 | 3d7f4724e6a2bc0e7ff24f9ed296c07b |
|
BLAKE2b-256 | 33903522fa628050c5324204cae240962247e974ca7aa533afb55a26d06ddc1a |
File details
Details for the file kv_sqlite_sync-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.10-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 | c356ae8725945b7b8a80713799add98e5a52a7deb6bb2c553909d74ead300449 |
|
MD5 | 89a1071f1082c8c888f29057663fe9fe |
|
BLAKE2b-256 | 1c0bfac062db0d7be174619f87044d74f7a7702b4b809a36ddefbe094b0fef95 |