types-pkg-resources
Typing stubs for pkg_resources
What it is and what it does
This package provides PEP 561 type stubs for pkg_resources, enabling static type checking of code that uses that library. Type stubs are metadata files that tell type checkers what types functions and classes accept and return, allowing developers to catch type errors during development without modifying the underlying library.
The stubs are auto-generated from typeshed, the community repository of type information for Python packages. Installing this package integrates transparently with any compatible type checker and has no runtime dependencies or performance cost.
Use it for:
- Enable static type checking of code that uses pkg_resources functions and classes.
- Catch type errors in resource access or entry point operations during development.
- Maintain type safety in projects that depend on pkg_resources for plugin discovery or data file access.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for pkg_resources to enable static type checking in tools like mypy and PyCharm.
Yes, if you use pkg_resources and run static type checking. It has no runtime cost, no dependencies, and Apache-2.0 licensing poses no restrictions. The main caveat is that the stubs have not been updated since 2021-06-17; verify they match your environment before relying on them for critical type safety.
Install
types-pkg-resources on PyPI
pip
pip install types-pkg-resourcesuv
uv add types-pkg-resourcespoetry
poetry add types-pkg-resourcesInstalling types-pkg-resources
Before you install
Low install friction with no runtime dependencies. Maintenance status is active, though the latest release dates to 2021-06-17 and no updates have occurred in 1884 days; it is auto-generated from typeshed, so staleness may reflect typeshed's own update cadence rather than abandonment.
License in practice
Licensed under Apache-2.0, a permissive license that allows commercial and private use with minimal restrictions, making it safe to include in most projects.
Quickstart
pip install types-pkg-resources
# Then configure your type checker to use the stubs during static analysis
Requires a type checker to be useful; the stubs alone do not enforce types at runtime.
Verify before relying
- Whether the type stubs remain accurate for current versions of the target library.
- How frequently typeshed updates are reflected in new releases of this package.
- Which type checkers (mypy, PyCharm, pytype, etc.) are actively supported by these stubs.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,884 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 552,426/month — #6,042 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pkg_resources-0.1.3-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-PyJWTProvides type stubs for PyJWT to enable static…
permissive · top 15,000 on PyPI
types-clickProvides PEP 561 type stubs for the click…
permissive · top 5,000 on PyPI
types-filelockProvides type stubs for the filelock package to…
permissive · top 15,000 on PyPI
types-WerkzeugProvides PEP 561 type stubs for Werkzeug,…
permissive · top 5,000 on PyPI
types-jwtProvides type stubs for the jwt package,…
permissive · top 15,000 on PyPI
types-geoip2Provides type stubs for the geoip2 package,…
permissive · top 15,000 on PyPI
types-futuresProvides type stubs for the futures package,…
permissive · top 15,000 on PyPI