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.7.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.7.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.7.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 | e6a17534f99b610aa781a83f14bcff603bf234cd8666720ef2b3278726581ef2 |
|
MD5 | 2010c7a4579150ef50949d8019f552e1 |
|
BLAKE2b-256 | f6fda2680cc5ab46476c6b21f323166d328e5d0c7fbdb1451f1b45a6fdbab7d5 |
File details
Details for the file kv_sqlite_sync-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.7-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 | 444edddfa1a76f2b6659b0ffcefcaab5fc68eaea17e25344d38219c23d5ff897 |
|
MD5 | 7b031a700641ad75e7a493cb9bc1a90c |
|
BLAKE2b-256 | 1265fa9f34367668d5fd05a01dd10e92b301a2e2978dea1a3a98e0610dfee4d4 |