PyDocs

Importing Modules

importlib.metadata

APIs exposing metadata from third-party Python packages.

This codebase is shared between importlib.metadata in the stdlib
and importlib_metadata in PyPI. See
https://github.com/python/importlib_metadata/wiki/Development-Methodology
for more detail.
Symbols in importlib.metadata

d

distribution
Get the ``Distribution`` instance for the named package.
Distribution
An abstract Python distribution package.
DistributionFinder
A MetaPathFinder capable of discovering installed distributions.
distributions
Get all ``Distribution`` instances in the current environment.

e

entry_points
Return EntryPoint objects for all installed packages.
EntryPoint
An entry point as defined by Python packaging conventions.
EntryPoints
An immutable collection of selectable EntryPoint objects.

f

files
Return a list of files for the named package.

m

metadata
Get the metadata for the named package.
MetadataNotFound
No metadata file is present in the distribution.

p

PackageMetadata
A concrete implementation of the PackageMetadata protocol.
PackageNotFoundError
The package was not found.
PackagePath
A reference to a path in a package
packages_distributions
Return a mapping of top-level packages to their distributions.

r

requires
Return a list of requirements for the named package.

s

SimplePath
A minimal subset of pathlib.Path required by Distribution.

v

version
Get the version string for the named package.