MCPcopy Index your code
hub / github.com/python/cpython / version

Function version

Lib/importlib/metadata/__init__.py:1094–1101  ·  view source on GitHub ↗

Get the version string for the named package. :param distribution_name: The name of the distribution package to query. :return: The version string for the package as defined in the package's "Version" metadata key.

(distribution_name: str)

Source from the content-addressed store, hash-verified

1092
1093
1094def version(distribution_name: str) -> str:
1095 """Get the version string for the named package.
1096
1097 :param distribution_name: The name of the distribution package to query.
1098 :return: The version string for the package as defined in the package's
1099 "Version" metadata key.
1100 """
1101 return distribution(distribution_name).version
1102
1103
1104_unique = functools.partial(

Calls 1

distributionFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…