--- id: py-key-value-aio version: "0.4.5" license: Apache-2.0 license_treatment: permissive maintenance: active --- # py-key-value-aio — Async Key-Value Store - A pluggable interface for KV Stores License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install py-key-value-aio uv add py-key-value-aio poetry add py-key-value-aio ## Description # 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 - [Full Documentation](https://strawgate.com/py-key-value/) - [Getting Started Guide](https://strawgate.com/py-key-value/getting-started/) - [Stores Guide](https://strawgate.com/py-key-value/stores/) - [Wrappers Guide](https://strawgate.com/py-key-value/wrappers/) - [Adapters Guide](https://strawgate.com/py-key-value/adapters/) - [API Reference](https://strawgate.com/py-key-value/api/protocols/) ## 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 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. 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. [View on SkillFed](https://skillfed.io/packages/py-key-value-aio) · [View on PyPI](https://pypi.org/project/py-key-value-aio/)