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

Function version

Lib/importlib/metadata/__init__.py:980–987  ·  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

978
979
980def version(distribution_name: str) -> str:
981 """Get the version string for the named package.
982
983 :param distribution_name: The name of the distribution package to query.
984 :return: The version string for the package as defined in the package's
985 "Version" metadata key.
986 """
987 return distribution(distribution_name).version
988
989
990_unique = functools.partial(

Calls 1

distributionFunction · 0.85