$npx skillfedfor your agent

diskcache-stubs

diskcache stubs

With conditionsPyPI Software DevelopmentReleased Aug 2024362.8K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — diskcache_stubs-5.6.3.6.20240818-py3-none-any.whl
v5.6.3.6.20240818 · released 2024-08-18 · Python >=3 · 1 runtime deps: typing-extensions

Yes, if you use diskcache and want static type checking—but with caveats. Install it alongside python-diskcache to get type hints for your type checker. Be aware that the package is abandoned and may not cover all diskcache APIs or stay current with future diskcache releases. If you need comprehensive, actively maintained type support, verify that the stubs cover the specific diskcache methods your code relies on.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • This package provides type hints only; you must separately install the runtime diskcache package (python-diskcache) for actual functionality.
  • Low install friction with a single lightweight dependency on typing-extensions.
  • However, the package is abandoned as of October 2024 with no active maintenance, which may leave type hints out of sync with future diskcache releases.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache License 2.0, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions.

last release 2024-08-18 (726 days) · last repo commit 2024-10-30 · 2 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 362,833 downloads/mo, #7,229 on PyPI

Verify before relying

pip install diskcache-stubs

import diskcache

cache = diskcache.Cache('/tmp/mycache')
cache['key'] = 'value'
  • Coverage of diskcache.core.Cache methods (pull, peek, peekitem) is incomplete per the TODO list.
  • Coverage of diskcache.djangocache.DjangoCache is incomplete and auto-generated.
  • Whether type hints remain accurate with newer diskcache versions given the abandoned maintenance status.
Same gist for agents: .md · .json

What it is and what it does

diskcache-stubs is a type-hints-only package that provides static type information for the diskcache library. It does not contain runtime code; instead, it supplies .pyi stub files and type annotations so that type checkers like mypy, pyright, and similar tools can understand the types used in diskcache code. This allows developers to catch type errors during development rather than at runtime.

The package depends only on typing-extensions and installs with low friction. However, it is archived and abandoned as of October 2024, meaning type hints may fall behind as diskcache itself evolves. The package's own TODO list indicates incomplete coverage of several diskcache classes and methods, particularly around Cache.pull, Cache.peek, Cache.peekitem, BaseCache.get, BaseCache.pop, and DjangoCache.

Use it for

  • Enable mypy or pyright to type-check code that imports and uses diskcache for disk-based caching.
  • Provide IDE autocomplete and inline type hints when working with diskcache objects in an editor.
  • Catch type mismatches in cache key/value operations before runtime in a typed Python project.
  • Support gradual typing migration in a codebase that uses diskcache by adding type annotations incrementally.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use diskcache and want static type checking—but with caveats.

Install it alongside python-diskcache to get type hints for your type checker. Be aware that the package is abandoned and may not cover all diskcache APIs or stay current with future diskcache releases. If you need comprehensive, actively maintained type support, verify that the stubs cover the specific diskcache methods your code relies on.

Install

diskcache-stubs on PyPI

Before you install

Low install friction with a single lightweight dependency on typing-extensions. However, the package is abandoned as of October 2024 with no active maintenance, which may leave type hints out of sync with future diskcache releases.

This package provides type hints only; you must separately install the runtime diskcache package (python-diskcache) for actual functionality.

License in practice

Licensed under Apache License 2.0, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions.

Quickstart

pip install diskcache-stubs

import diskcache

cache = diskcache.Cache('/tmp/mycache')
cache['key'] = 'value'

Verify before relying

  • Coverage of diskcache.core.Cache methods (pull, peek, peekitem) is incomplete per the TODO list.
  • Coverage of diskcache.djangocache.DjangoCache is incomplete and auto-generated.
  • Whether type hints remain accurate with newer diskcache versions given the abandoned maintenance status.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceAbandoned 726 days since the last release
Last repo commit repository archived
First released
Downloads362,833 / month, #7,229 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonTyping :: Stubs Only

Evidence: diskcache_stubs-5.6.3.6.20240818-py3-none-any.whl

Tags

Capabilities
type hints for diskcachediskcache stubs typingstatic type checking cachepython type annotations stubsmypy diskcache support
Topics
type-stubsstatic-typing

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 hints for diskcache”

  • diskcache-stubsProvides type hints and stubs for the diskcache library to enable…
  • diskcacheDiskCache provides a pure-Python disk-backed cache library that…
  • cashewsAsync cache framework with decorator and direct API support for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also joblib-stubs · sortedcontainers-stubs · diskcache · diskcache-weave · flexcache · cashews · grpc-stubs · persist-queue · queuelib · backports.cached-property