$npx skillfedfor your agent

types-redis

Typing stubs for redis

With conditionsPyPI Released Oct 202421.8M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — types_redis-4.6.0.20241004-py3-none-any.whl
v4.6.0.20241004 · released 2024-10-04 · Python >=3.8 · 2 runtime deps: types-pyOpenSSL, cryptography

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

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
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
types-pyOpenSSLcryptography
MaintenanceActively maintained 679 days since the last release
Last repo commit
First released
Downloads21,824,406 / month, #990 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
redis type stubstype checking redismypy redis annotationsstatic type checking redisredis type hintspyright redis typesredis pep 561 stubs
Topics
type-stubstype-checking

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

types-boto With conditions
PyPI · Software Development · released Oct 2024

Provides type stubs for the boto AWS SDK, enabling static type checking of boto code with mypy, pyright, pytype, Pyre, and PyCharm.

Apache-2.0pure Python · 3.8+
783.0Kdownloads / mo
types-stripe With conditions
PyPI · Software Development · released Jan 2024

Provides type stubs for the stripe package, enabling static type checking of stripe code with tools like mypy, pyright, and pytype.

Apache-2.0pure Python · 3.8+
845.2Kdownloads / mo
types-urllib3 With conditions
PyPI · released Jul 2023

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.

Apache-2.0pure Python
24.2Mdownloads / mo
types-caldav With conditions
PyPI · Software Development · released May 2025

Provides type stubs for caldav, enabling static type checkers like mypy, pyright, and pytype to validate code using caldav.

Apache-2.0pure Python · 3.9+
105.3Kdownloads / mo
types-paho-mqtt With conditions
PyPI · Software Development · released Mar 2024

Provides type stubs for paho-mqtt 1.6.* to enable static type checking with mypy, pyright, pytype, and other tools.

Apache-2.0pure Python · 3.8+
135.3Kdownloads / mo
types-Flask-SQLAlchemy Skip
PyPI · Software Development · released May 2023

Provides type stubs for Flask-SQLAlchemy to enable static type checking with mypy, pyright, pytype, and other PEP 561-compatible tools.

Apache-2.0pure Python
243.5Kdownloads / mo

See also types-pyOpenSSL · types-typed-ast · types-python-slugify · types-babel