Skip to main content

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()

Read the docs!

Project details


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.3.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

python_kv-0.3.3-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file python_kv-0.3.3.tar.gz.

File metadata

  • Download URL: python_kv-0.3.3.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

Hashes for python_kv-0.3.3.tar.gz
Algorithm Hash digest
SHA256 b7f410444eef5a88d1b74bdd85c66303adb6e34beedd76e1722660ab4db56058
MD5 2c4fb8b2ac9cba968fa133c99fdb5604
BLAKE2b-256 29c790e764ba4d638720931ac6f4e52d7af5d5eef06f4c24843a88310c3315b9

See more details on using hashes here.

File details

Details for the file python_kv-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: python_kv-0.3.3-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

Hashes for python_kv-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80641376ba60b49262eaba3c207e7d56259738c6f4fc77cece4e02ba111f4aa0
MD5 fdaf1f662e6bf948544c9eefb303dc1f
BLAKE2b-256 0e0403ad24dd0e0aec201681a52b8949aa799035976a307722eb18f051d64201

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page