PyDocs

Nav

Importing Modules

Distribution.from_name

  • Distribution.from_name(name)
Return the Distribution for the given package name.

:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
    package, if found.
:raises PackageNotFoundError: When the named package's distribution
    metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
0 Examples
No examples for importlib.metadata/Distribution.from_name.
See Also
No see-alsos for importlib.metadata/Distribution.from_name
0 Notes
No notes for Distribution.from_name