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.4.tar.gz
(16.2 kB
view details)
Built Distribution
python_kv-0.3.4-py3-none-any.whl
(24.6 kB
view details)
File details
Details for the file python_kv-0.3.4.tar.gz
.
File metadata
- Download URL: python_kv-0.3.4.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b402865296d2565e90f38d760f0cd898bcdf2748cf1343281cd3d17fb9cf90bb |
|
MD5 | 1e2b63a7483413651706292eec1fb544 |
|
BLAKE2b-256 | daa35774c08da9baca55be3c01671a11ec4a145631e143a1c4a765be3e9e401b |
File details
Details for the file python_kv-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: python_kv-0.3.4-py3-none-any.whl
- Upload date:
- Size: 24.6 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 | 7332e5aea2be4f39faae51d3c808fe1f96accd4310e8f931a8412c4a3e3c8a7c |
|
MD5 | 1ae092f9fb650cf91f1e1ac287fdcc29 |
|
BLAKE2b-256 | b5af0e3a264bea3affc9ac88c8a8a81fd3cff89ca4a56e34e3eb95a27c40f336 |