types-redis
Typing stubs for redis
Decision gist · record as of 2026-08-14
Yes, if you use redis versions prior to 5.0.0 and want static type checking. The package is actively maintained, has no security vulnerabilities, and low install friction. However, uninstall it if you upgrade to redis 5.0.0 or later, as redis now includes native type annotations and this stub package may conflict.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.8.
- Note: redis package includes native type annotations since version 5.0.0, making this stub package unnecessary for redis 5.0.0 and later.
- Low friction install with only two runtime dependencies (types-pyOpenSSL and cryptography).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without significant restrictions, including commercial and proprietary software.
last release 2024-10-04 (679 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 21,824,406 downloads/mo, #990 on PyPI
Alternatives
Verify before relying
pip install types-redis
# Then use with type checker configuration (e.g., mypy.ini or pyproject.toml)
# mypy will automatically discover the stubs when checking code that imports redis- Whether the stub package is actively maintained for redis versions beyond 4.6.0, or if it will be superseded by redis's native annotations
- Coverage completeness for all redis APIs—the package is marked as partial, but the extent of missing annotations is unclear
What it is and what it does
types-redis is a PEP 561 type stub package that provides type annotations for the redis library, allowing static type checkers like mypy, pyright, and pytype to validate code that uses redis. It bridges the gap for redis versions prior to 5.0.0, which did not include native type annotations. The stubs are generated from typeshed and tested against multiple type checkers (mypy 1.11.2, pyright 1.1.383, pytype 2024.9.13). The package depends on types-pyOpenSSL and cryptography, and is marked as a partial stub package—meaning some annotations may be incomplete and contributions are welcome.
For developers using redis with versions up to 4.6.0, installing types-redis enables IDE autocompletion, type-checking in CI/CD pipelines, and early detection of type mismatches. However, if you are using redis 5.0.0 or later, the redis package itself includes type annotations, making types-redis redundant and potentially conflicting.
Use it for
- Enable mypy or pyright type checking on a codebase that uses redis 4.6.0 or earlier
- Get IDE autocompletion and inline type hints for redis API calls in PyCharm or VS Code
- Validate redis client code in a CI/CD pipeline before deployment
- Catch type errors in redis operations (e.g., incorrect argument types) at development time
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use redis versions prior to 5.0.0 and want static type checking.
The package is actively maintained, has no security vulnerabilities, and low install friction. However, uninstall it if you upgrade to redis 5.0.0 or later, as redis now includes native type annotations and this stub package may conflict.
Install
types-redis on PyPI
Before you install
Low friction install with only two runtime dependencies (types-pyOpenSSL and cryptography). Actively maintained with recent updates; the repository is current as of 2026-08-14 with no security vulnerabilities reported.
Requires Python >=3.8. Note: redis package includes native type annotations since version 5.0.0, making this stub package unnecessary for redis 5.0.0 and later.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions, including commercial and proprietary software.
Quickstart
pip install types-redis
# Then use with type checker configuration (e.g., mypy.ini or pyproject.toml)
# mypy will automatically discover the stubs when checking code that imports redis
Verify before relying
- Whether the stub package is actively maintained for redis versions beyond 4.6.0, or if it will be superseded by redis's native annotations
- Coverage completeness for all redis APIs—the package is marked as partial, but the extent of missing annotations is unclear
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestypes-pyOpenSSLcryptography |
| Maintenance | Actively maintained 679 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 21,824,406 / month, #990 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_redis-4.6.0.20241004-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 › “redis type stubs”
- types-redisProvides type stubs for the redis package, enabling static type…
- coredisAn async Redis client with full type hints, supporting cluster and…
- redis-omRedis OM provides declarative object mapping and data validation for…
Give your agent the search over MCP, or paste the wish link into any chat.
Similar packages
Provides type stubs for the boto AWS SDK, enabling static type checking of boto code with mypy, pyright, pytype, Pyre, and PyCharm.
Provides type stubs for the stripe package, enabling static type checking of stripe code with tools like mypy, pyright, and pytype.
Provides type stubs for urllib3 to enable static type checking with mypy, pyright, pytype, and similar tools on code using urllib3.
However, if you use urllib3 2.0.0 or later, which includes native type annotations, this package is redundant.
Provides type stubs for caldav, enabling static type checkers like mypy, pyright, and pytype to validate code using caldav.
Provides type stubs for paho-mqtt 1.6.* to enable static type checking with mypy, pyright, pytype, and other tools.
Provides type stubs for Flask-SQLAlchemy to enable static type checking with mypy, pyright, pytype, and other PEP 561-compatible tools.
See also types-pyOpenSSL · types-typed-ast · types-python-slugify · types-babel