skillfed

py-key-value-aio

Async Key-Value Store - A pluggable interface for KV Stores

py-key-value-aio Permissive license Apache-2.0 Active v0.4.5 released

Install

py-key-value-aio on PyPI

pip

pip install py-key-value-aio

uv

uv add py-key-value-aio

poetry

poetry add py-key-value-aio

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — beartype, typing-extensions
Maintenance actively maintained — 78 days since the last release
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: py_key_value_aio-0.4.5-py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

About py-key-value-aio

from the package's own PyPI description — quoted content, verbatim

Python Key-Value Libraries

This monorepo contains:

  • py-key-value-aio: Async key-value store library (primary and supported).
  • py-key-value-sync: Sync version (no longer planned; async-only focus).

Documentation

Why use this library?

  • Multiple backends: Aerospike, Azure Tables, chDB, DuckDB, DynamoDB, Elasticsearch, FileTree, Firestore, Keyring, Memcached, MongoDB, OpenSearch, PostgreSQL, Redis, RocksDB, S3, Valkey, Vault, Windows Registry, and In-memory, Disk, etc.
  • TTL support: Automatic expiration handling across all store types
  • Type-safe: Full type hints with Protocol-based interfaces
  • Adapters: Pydantic model support, raise-on-missing behavior, etc
  • Wrappers: Statistics tracking and extensible wrapper system
  • Collection-based:...

Read as markdown · JSON record

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

An async-only key-value store library providing a pluggable Protocol-based interface to multiple backends (Redis, DynamoDB, MongoDB, in-memory, disk, and others) with TTL support and type-safe operations.

Low friction: pure Python wheel with only two lightweight runtime dependencies (beartype and typing-extensions). Active maintenance with a release 78 days ago. Targets Python 3.10–3.13.

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Usage

import asyncio
from py_key_value_aio import MemoryStore

async def main():
    store = MemoryStore()
    await store.put(key="user:1", value={"name": "Alice"}, ttl=3600)
    result = await store.get(key="user:1")
    await store.delete(key="user:1")

asyncio.run(main())

Requires Python ≥3.10; async/await syntax mandatory (no synchronous API planned).

Verdict: A well-maintained, actively developed async key-value abstraction with low install friction and no known vulnerabilities. Best suited for framework authors seeking a backend-agnostic storage protocol; end users should be aware it is async-only, stores wrapped entries (not raw values), and uses runtime type checking via beartype.

Needs verification

  • Whether the 78-day release cadence represents typical maintenance velocity or a one-off.
  • Scope and maturity of each backend implementation (stability ratings mentioned but not detailed in fact sheet).
  • Real-world adoption beyond the FastMCP example cited in the description.
async key-value storepluggable kv backend abstractionasync cache with ttltype-safe key value protocoldistributed key value storage

Similar packages