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)
| 978 | |
| 979 | |
| 980 | def 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( |