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.4.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.4.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.4.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 | 81e62658ecd762c455a5b9419c719ede69c06ace944b4d07781187ece5e5230e |
|
MD5 | cd4170d6dd550926238e0d92327bae26 |
|
BLAKE2b-256 | 304ec3ae23b4c06b8912ca39cb42d87b79b3d5324fc98f4152bfd9eed88720ea |
File details
Details for the file kv_sqlite_sync-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.4-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 | 1248dd41d79324f0f196e7481e72008253babf1dbd948c96fccd3bdaf3a8af7d |
|
MD5 | df06fb3dcdada14edc9f0d41f89d6897 |
|
BLAKE2b-256 | a3ba61be7baf250aeea5b1d44d7c00ffc3b5c92cc6e5398cc5bc2ac483dbf345 |