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.9.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.9.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.9.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 | b9978cb99d82bc1cc71357131c0da24d30781962e3a96ef7c59e81fa4313952f |
|
MD5 | 60d489ff3f8a909076c43467eed3b5cf |
|
BLAKE2b-256 | f2b362cc7dc93e4f4e0659962d40a617454c3d9749cdb31b2018346d8fbd1d11 |
File details
Details for the file kv_sqlite_sync-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.9-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 | 72ea41b051d0ec73b557bef5c38b04ee7436196ef14bbe8a0d4b857d908bf431 |
|
MD5 | 5cf365dbe56c23b77d10c1dad095fba8 |
|
BLAKE2b-256 | 46d61c23a318653e02221fac4030585c68898e16d86f6a91373fc5240c164e23 |