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.5.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file kv_sqlite_sync-0.1.5.tar.gz
.
File metadata
- Download URL: kv_sqlite_sync-0.1.5.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 | 36db3663a440fbdc178dc0f9e76e27d98728aea51de3cbd789ea9be97058edb1 |
|
MD5 | 1b6ac960f4ae592052620d821a6e13c3 |
|
BLAKE2b-256 | 886f6e50965bce2e0ca33f49cb0dc9149d92bf6e6c0e075925996256feed2a89 |
File details
Details for the file kv_sqlite_sync-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.4 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 | 814fc6e0922c160773c31d76a89abc23c14d6cae817745fc8f1b38d21e212cda |
|
MD5 | d8aa1a2026e67d739acd01d3200c374f |
|
BLAKE2b-256 | 4ffa9dc140745b0e4973fb16cfa2363578600ca5be8660f1f386ccbf1c1f3238 |