skillfed

types-pkg-resources

Typing stubs for pkg_resources

types-pkg-resources v0.1.3 552.4K downloads/30d#6,042 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-resources

uv

uv add types-pkg-resources

poetry

poetry add types-pkg-resources

Installing 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

License :: OSI Approved :: Apache Software LicenseTyping :: Typed

Tags

type stubs pkg_resourcesmypy type hintsstatic type checkingpep 561 type stubstyping supporttype annotations
type-stubsstatic-analysis

More Software Development packages