py-key-value-aio
Async Key-Value Store - A pluggable interface for KV Stores
Install
py-key-value-aio on PyPI
pip
pip install py-key-value-aiouv
uv add py-key-value-aiopoetry
poetry add py-key-value-aioPackage 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
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:...
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.
Similar packages
permissive · top 1,000 on PyPI
kombupermissive · top 1,000 on PyPI
redispermissive · top 1,000 on PyPI
truststorepermissive · top 1,000 on PyPI
aioboto3permissive · top 1,000 on PyPI
cachetoolspermissive · top 1,000 on PyPI
cached-propertypermissive · top 1,000 on PyPI
diskcachepermissive · top 1,000 on PyPI
partdpermissive · top 1,000 on PyPI
fakeredispermissive · top 1,000 on PyPI