MCPcopy Index your code
hub / github.com/RustPython/RustPython / distribution

Function distribution

Lib/importlib/metadata/__init__.py:954–960  ·  view source on GitHub ↗

Get the ``Distribution`` instance for the named package. :param distribution_name: The name of the distribution package as a string. :return: A ``Distribution`` instance (or subclass thereof).

(distribution_name: str)

Source from the content-addressed store, hash-verified

952
953
954def distribution(distribution_name: str) -> Distribution:
955 """Get the ``Distribution`` instance for the named package.
956
957 :param distribution_name: The name of the distribution package as a string.
958 :return: A ``Distribution`` instance (or subclass thereof).
959 """
960 return Distribution.from_name(distribution_name)
961
962
963def distributions(**kwargs) -> Iterable[Distribution]:

Calls 1

from_nameMethod · 0.80