types-redis
Typing stubs for redis
Install
types-redis on PyPI
pip
pip install types-redisuv
uv add types-redispoetry
poetry add types-redisPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — types-pyOpenSSL, cryptography |
| Maintenance | actively maintained — 678 days since the last release |
| Last repo commit | |
| 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: types_redis-4.6.0.20241004-py3-none-any.whl
About types-redis
from the package's own PyPI description — quoted content, verbatim
Typing stubs for redis
This is a PEP 561
type stub package for the redis package.
It can be used by type-checking tools like
mypy,
pyright,
pytype,
PyCharm, etc. to check code that uses
redis.
This version of types-redis aims to provide accurate annotations
for redis==4.6.0.
The source for this package can be found at
https://github.com/python/typeshed/tree/main/stubs/redis. All fixes for
types and metadata should be contributed there.
Note: The redis package includes type annotations or type stubs
since version 5.0.0. Please uninstall the types-redis
package if you use this or a newer version.
This stub package is marked as partial. If you find that annotations are missing, feel free to contribute and help complete them.
See https://github.com/python/typeshed/blob/main/README.md for more details. This package was generated from typeshed...
Read as markdown · JSON record · Source repository · Homepage
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
Provides PEP 561 type stubs for redis 4.6.0, enabling static type checkers like mypy and pyright to validate code that uses redis.
Low friction; marked active with recent releases and a stable upstream (typeshed). Note that redis 5.0.0+ includes native type annotations, making this package redundant for newer versions.
Apache-2.0 is permissive and poses no restrictions on commercial or private use; you may freely depend on this package in any project.
Usage
pip install types-redis
# Type checkers will use the stubs when analyzing code that imports redis
import types_redis
Requires Python >=3.8; intended for redis==4.6.0 (uninstall if using redis 5.0.0 or later, which includes native stubs).
Verdict: A well-maintained, low-friction type stub package for redis 4.6.0. No known vulnerabilities and permissive licensing. However, it is superseded by redis 5.0.0+, so only install if locked to an older redis version.
Needs verification
- Whether the partial stub coverage is sufficient for your codebase's redis usage patterns.
- Compatibility with redis versions other than 4.6.0, despite the version-specific targeting.
Similar packages
permissive · top 1,000 on PyPI
types-certifipermissive · top 1,000 on PyPI
hiredispermissive · top 1,000 on PyPI
redispermissive · top 1,000 on PyPI
types-PyYAMLpermissive · top 1,000 on PyPI
fakeredispermissive · top 1,000 on PyPI
types-cachetoolspermissive · top 1,000 on PyPI
types-tomlpermissive · top 1,000 on PyPI
types-pytzpermissive · top 1,000 on PyPI
pandas-stubspermissive · top 1,000 on PyPI