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.3.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file kv-sqlite-sync-0.1.3.tar.gz
.
File metadata
- Download URL: kv-sqlite-sync-0.1.3.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 | 74b17964eb77e96a434bac55db2a1edcad81e0bdd88df6e8118e9248bfc0a5ba |
|
MD5 | 81dbc5d47c49c5ce0b8926045e42c466 |
|
BLAKE2b-256 | 16f7135e1fb80c32e1462a1c6d8129fdcc520bb7dd980fc482c1fb9e64e19dcb |
File details
Details for the file kv_sqlite_sync-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: kv_sqlite_sync-0.1.3-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 | d584b93953da268f8d2c86722d6b7e100bd1cd54faba7f68ab3c165d6943cc3a |
|
MD5 | 8b093bebdb3d2e21d6830a51684e444c |
|
BLAKE2b-256 | 2406b71b429bc3561f185ba1d5f6c52e11fecd28c4c268cf80d273a825ca3c5a |