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.6.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.6.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.6.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f969336b2ab1484ac57211bd54e6687422cc029ba4f754fcc4f6be3f21c28224 |
|
MD5 | 5d9a87e452b9b17baf9e07d3d76450ea |
|
BLAKE2b-256 | 1687deeb2134724007529f2fea229f51c7c103ec65cc5b8c20b4ede6068dbb15 |
File details
Details for the file kv_sqlite_sync-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | 461b7befe947ceba85a9c10b02a3e17e566da3dd612ced78e64df71a445ae431 |
|
MD5 | 58a65e9d74bc6cdc4088443710a8b1e5 |
|
BLAKE2b-256 | 8b86875ed2c1bdb65e49c997ce7bc0e78bcfe938f33a7b9a10aa5547a222cba5 |