types-cachetools
Typing stubs for cachetools
Decision gist · record as of 2026-08-14
Yes, if you use cachetools 7.0.* and rely on static type checking with mypy or pyright. No, if you already use cachetools 7.1.0 or later—uninstall this package and use the built-in type annotations instead. The stub package is maintained with no security vulnerabilities, but becomes obsolete once cachetools includes its own stubs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Redundant if cachetools 7.1.0+ is installed, which includes built-in type annotations.
- Low friction installation with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and open-source projects without significant restrictions.
last release 2026-07-13 (32 days) · last repo commit 2026-08-13 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 24,412,225 downloads/mo, #919 on PyPI
Alternatives
Verify before relying
pip install types-cachetools
# Then use with type checker (mypy, pyright) on code importing cachetools
# No direct import needed; type checker uses stubs automatically- Whether this package remains necessary when cachetools 7.1.0+ is already installed with built-in type stubs.
What it is and what it does
This is a type stub package from the typeshed project that provides type annotations for cachetools. It allows Python type checkers like mypy 2.2.0 and pyright 1.1.411 to understand and validate the types used in cachetools code, catching type errors before runtime. The stubs target cachetools 7.0.* versions.
The package has no runtime dependencies and is installed purely for development-time type checking. The description notes that cachetools 7.1.0 and later include their own type annotations, making this stub package redundant for those versions.
Use it for
- Enable mypy or pyright to type-check code that imports and uses cachetools.
- Catch type mismatches in cache operations before runtime when using cachetools 7.0.*.
- Support IDE autocomplete and type inference for cachetools APIs during development.
- Validate function signatures when wrapping cachetools decorators in custom utilities.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use cachetools 7.0.* and rely on static type checking with mypy or pyright.
No, if you already use cachetools 7.1.0 or later—uninstall this package and use the built-in type annotations instead. The stub package is maintained with no security vulnerabilities, but becomes obsolete once cachetools includes its own stubs.
Install
types-cachetools on PyPI
Before you install
Low friction installation with no runtime dependencies. Part of the active typeshed project maintained via centralized stub repository. Note: cachetools 7.1.0+ includes its own type annotations, making this package unnecessary for newer versions.
Requires Python 3.10 or later. Redundant if cachetools 7.1.0+ is installed, which includes built-in type annotations.
License in practice
Apache-2.0 permissive license allows use in commercial and open-source projects without significant restrictions.
Quickstart
pip install types-cachetools
# Then use with type checker (mypy, pyright) on code importing cachetools
# No direct import needed; type checker uses stubs automatically
Verify before relying
- Whether this package remains necessary when cachetools 7.1.0+ is already installed with built-in type stubs.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 32 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 24,412,225 / month, #919 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_cachetools-7.0.0.20260713-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 › “type stubs cachetools”
- types-cachetoolsProvides type stubs for cachetools, enabling type checkers like mypy…
- shelved-cacheWraps cachetools cache implementations with disk persistence,…
- asyncacheProvides decorator-based caching for async functions using cachetools…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-Markdown · types-gdb · types-decorator · types-croniter · types-mypy-extensions · types-click-spinner · types-pyflakes · types-boltons · types-docutils · types-icalendar