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.6.tar.gz
(16.4 kB
view details)
Built Distribution
python_kv-0.3.6-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file python_kv-0.3.6.tar.gz
.
File metadata
- Download URL: python_kv-0.3.6.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 | e2f14705109710fc6650c19218c3ba2236e466d8df24a4a05594540d1f7f30df |
|
MD5 | e4632dfed77cde0789bca3f0bdeb9b1e |
|
BLAKE2b-256 | 15c639a47ec7f6dd678e54db5519a4ffb0c69a769d4816a2b1cf1c195cad75e8 |
File details
Details for the file python_kv-0.3.6-py3-none-any.whl
.
File metadata
- Download URL: python_kv-0.3.6-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 | a103c1ce3e82ea3d95222121b174044a8116b2b0a54ffc47f345d9ff90cea607 |
|
MD5 | 2c787f15c4bed6a693fa4043cc106de6 |
|
BLAKE2b-256 | b3b18d35a301a4050c90660e79cd2fe860d4ac28ebe7f374e7a22c547721691d |