Async key-value store ABC. Implementations over SQLAlchemy, the filesystem, Redis, Azure Blob, and more.
Project description
KV
KV
is an async key-value store interface for Python. It provides a simple API to store serializable objects.
pip install python-kv
KV
supports multiple backends, including the filesystem, SQLite, Redis, Azure Blob, and many more.
from kv import KV
kv = KV.of('sql+sqlite:///path/to/db.sqlite', type=dict)
await kv.insert('hello', {'world': 42})
await kv.read('hello') # {'world': 42}
await kv.delete('hello')
async for k, v in kv.items():
...
await kv.clear()
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
python_kv-0.3.8.tar.gz
(16.4 kB
view details)
Built Distribution
python_kv-0.3.8-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file python_kv-0.3.8.tar.gz
.
File metadata
- Download URL: python_kv-0.3.8.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a9d2e21f0ec65eed3c9b1db5e627b1f8211ef4c441c920d8abfebe2679a41f |
|
MD5 | 0acfcbea1e6b728261b53826d89a95f0 |
|
BLAKE2b-256 | c7b4e5153a8f5192f4585c76366fee90b9422f825f101213ec456e12a9472784 |
File details
Details for the file python_kv-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: python_kv-0.3.8-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d8cc2c17e524151ce4e09afc97f826f14f14fb921098eeaacb4950cebecd96 |
|
MD5 | 62cef16652c47e2a3b954cf215ae97eb |
|
BLAKE2b-256 | 14c8c60af2f5859ccb705fa69a8f18381dab82de691a3e87bc83e1157f4b9ec4 |