PyDocs

Nav

Importing Modules

Distribution

An abstract Python distribution package.

Custom providers may derive from this class and define
the abstract methods to provide a concrete implementation
for their environment. Some providers may opt to override
the default implementation of some properties to bypass
the file-reading mechanism.
Members of Distribution

a

at
Return a Distribution for the indicated metadata path.

d

discover
Return an iterable of Distribution objects for all packages.

e

entry_points
Return EntryPoints for this distribution.

f

files
Files in this distribution.
from_name
Return the Distribution for the given package name.

l

locate_file
Given a path to a file in this distribution, return a SimplePath to it.

m

metadata
Return the parsed metadata for this Distribution.

n

name
Return the 'Name' metadata for the distribution package.

o

origin
For editable packages, an origin property may present PEP 610 metadata (for non-editable packages, origin is None):

r

read_text
Attempt to load metadata file given by the name.
requires
Generated requirements specified for this Distribution

v

version
Return the 'Version' metadata for the distribution package.
0 Examples
No examples for importlib.metadata/Distribution.
See Also
No see-alsos for importlib.metadata/Distribution
0 Notes
No notes for Distribution