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.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file kv-sqlite-sync-0.1.1.tar.gz
.
File metadata
- Download URL: kv-sqlite-sync-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bbd50a7456d9f7f5e49dc003032d0eb783b8ee6ca888f7b13ae383f5e87a2a |
|
MD5 | c38fb1b347f1077e87dfbb58333abcfe |
|
BLAKE2b-256 | 20fa716aca2d90e80f5f596cc48fa1b0fe96c53530620fcac47d75bb3d2aca32 |
File details
Details for the file kv_sqlite_sync-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 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 | 82e6c652f0b2a8e66b589077049506ab2b3f3facfdff97a08cf5cfc0b43703b9 |
|
MD5 | aba59bf5945820da70ae1eaf3275fd49 |
|
BLAKE2b-256 | edd984d57ac33e377013e4df1bba7096c332275a55f65961a7dbd0a63c325668 |