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

Uploaded Source

Built Distribution

python_kv-0.3.5-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for python_kv-0.3.5.tar.gz
Algorithm Hash digest
SHA256 b60a7000d463fffde2b53928e8e400c9a0a0cfa14c30aa3d2f71fd6436fc74f2
MD5 627a88bd09c92e1211e08ba6dcb5ae94
BLAKE2b-256 77e276b89f6c826134f15a85504840bf2b83cd663eae3fd8316cf165e34104bd

See more details on using hashes here.

File details

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

File metadata

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

Hashes for python_kv-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 34425f796498e90288e8072205319b3fa7cb902a7eac26864314c527ce5efe7d
MD5 341a0893ea4b0019251a4a5aff28d28a
BLAKE2b-256 8854705e42d96db0723df38045b1a5063730a239cee95f093c1e356027a155cb

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