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.10.tar.gz
(16.5 kB
view details)
Built Distribution
File details
Details for the file python_kv-0.3.10.tar.gz
.
File metadata
- Download URL: python_kv-0.3.10.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b5c63e36aa88b3be75371d9d6bc4cf3a3a71e98028ae4219fefc5418d6a63f |
|
MD5 | f730d7e89f1e3d10f69c434d4260c77e |
|
BLAKE2b-256 | 7bdfa8166f7a003038b0f2fce26ca35f41054a4efe6701759dae98fc73249342 |
File details
Details for the file python_kv-0.3.10-py3-none-any.whl
.
File metadata
- Download URL: python_kv-0.3.10-py3-none-any.whl
- Upload date:
- Size: 25.0 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 | 8f9b9e60587b09503829c19fa325550a4cff7fe3fffe77e92084e5fdaf154a22 |
|
MD5 | b36f94c6034a6450256270b047f06b13 |
|
BLAKE2b-256 | cbb95e22a6c8e4087336c3687c78ec4524a3a5e5a554244c0642d5cf6980f291 |