coredis
Fast, async, fully-typed Redis client with support for cluster and sentinel
Decision gist · record as of 2026-08-14
Yes. Coredis is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. It is the right choice if you need an async Redis client with strong typing, cluster/sentinel support, and flexibility between asyncio and trio. If you only need synchronous Redis access or are on Python <3.10, look elsewhere.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; a running Redis server (7.0+) or compatible database like Valkey or Dragonfly.
- Low install friction with a pure-Python wheel and six well-maintained runtime dependencies.
- Actively maintained with a release 22 days ago and recent commits.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-07-23 (22 days) · last repo commit 2026-08-13 · 116 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,568,552 downloads/mo, #3,751 on PyPI
Alternatives
Verify before relying
import anyio
import coredis
async def main():
client = coredis.Redis(host='127.0.0.1', port=6379, decode_responses=True)
async with client:
await client.set("key", "value")
result = await client.get("key")
anyio.run(main, backend="asyncio")- Performance characteristics compared to other async Redis clients in production workloads.
- Completeness of Redis Stack module support beyond what is documented.
- Real-world experience with client-side caching behavior under high concurrency.
What it is and what it does
Coredis is an async Redis client library designed for modern Python applications that need non-blocking I/O. It provides full type hints throughout its API, including for pipelines and Lua scripts, making it suitable for codebases that rely on static type checking. The client is built on anyio, an async abstraction layer, which means it works seamlessly with both asyncio and trio—the two major async frameworks in Python.
The library handles single-node Redis, cluster deployments, and sentinel-based high-availability setups. It includes features like connection pooling, pipelining, pub/sub, Lua scripting, stream consumers, and server-assisted client-side caching. Optional runtime type validation is available via beartype. The package targets Python 3.10 and later, including PyPy, and is tested against Redis 7.0 and compatible databases like Valkey and Dragonfly.
Use it for
- Building async web services that need Redis for caching, sessions, or rate limiting without blocking the event loop.
- Implementing Redis Cluster clients in applications requiring horizontal scaling and automatic failover.
- Using Redis Sentinel for high-availability setups where automatic primary/replica failover is needed.
- Writing type-safe async code where IDE autocomplete and static type checking on Redis commands are valuable.
- Streaming data processing with Redis Streams using the built-in stream consumer API.
- Pub/Sub messaging in async applications with support for both asyncio and trio backends.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Coredis is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. It is the right choice if you need an async Redis client with strong typing, cluster/sentinel support, and flexibility between asyncio and trio. If you only need synchronous Redis access or are on Python <3.10, look elsewhere.
Install
coredis on PyPI
Before you install
Low install friction with a pure-Python wheel and six well-maintained runtime dependencies. Actively maintained with a release 22 days ago and recent commits.
Requires Python 3.10 or later; a running Redis server (7.0+) or compatible database like Valkey or Dragonfly.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
import anyio
import coredis
async def main():
client = coredis.Redis(host='127.0.0.1', port=6379, decode_responses=True)
async with client:
await client.set("key", "value")
result = await client.get("key")
anyio.run(main, backend="asyncio")
Verify before relying
- Performance characteristics compared to other async Redis clients in production workloads.
- Completeness of Redis Stack module support beyond what is documented.
- Real-world experience with client-side caching behavior under high concurrency.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesanyiobeartypedeprecatedexceptiongrouppackagingtyping-extensions |
| Maintenance | Actively maintained 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,568,552 / month, #3,751 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AnyIOFramework :: AsyncIOFramework :: TrioIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Distributed ComputingTyping :: Typed |
Evidence: coredis-6.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async redis client”
- coredisAn async Redis client with full type hints, supporting cluster and…
- aioredisAn asyncio-based Redis client library providing both low-level and…
- valkey-glideValkey GLIDE is an official async and sync Python client for Valkey…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also aioredlock · redis-py-cluster · redis-cli · aioredis · valkey-glide-sync · valkey-glide · anyio · Redis-Sentinel-Url · burner-redis · redis