Registry / type-stubs / diskcache-stubs

diskcache-stubs

JSON →
library5.6.3.6.20240818pypypiunverified

Type stubs for the diskcache library, enabling type checking and IDE autocompletion. Current version 5.6.3.6.20240818, updated infrequently to match diskcache releases.

pip install diskcache-stubs
INSTALL
IMPORT
SIG · DISKCACHE-STUBS
D
diskcache-stubs
type-stubspythonv5.6.3.6.20240818
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.6.3.6.20240818 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cache
from diskcache_stubs import Cache
from diskcache_stubs import Cache

Create a disk cache, set and get a value. Type hints will be available after installing diskcache-stubs.

from diskcache import Cache cache = Cache('/tmp/my_cache') cache.set('key', 'value') print(cache.get('key'))
Debug
Known issues
gotchaInstalling diskcache-stubs does not install diskcache. You must install diskcache separately.
fix
pip install diskcache diskcache-stubs
affects: all
gotchaDo not import directly from diskcache_stubs. Import from the diskcache package.
fix
from diskcache import Cache
affects: all
gotchaThe stubs version includes the diskcache version (e.g., 5.6.3) and a stub patch number. Ensure compatibility by matching the diskcache major.minor.patch.
fix
Check diskcache version: pip show diskcache; then install matching stubs: pip install diskcache-stubs==5.6.3.x
affects: all
deprecatedOld versions of diskcache-stubs (<5.6.3) may have incomplete type annotations for newer diskcache features.
fix
Upgrade to latest: pip install --upgrade diskcache-stubs
affects: <5.6.3
Upgrade
Version history
5.6.3.6.20240818latest on PyPI · released Aug 18, 2024
Audit
Dependencies
diskcacherequiredRuntime dependency; stubs are useless without the actual library.
Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
diskcache-stubs — pip install diskcache-stubs · libregistry