PyDocs

Nav

Importing Modules

version

  • version(distribution_name)
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.
1 Example
(example) $ python
>>> from importlib.metadata import version
>>> version('wheel')
'0.32.3'
from the Python docs
See Also
No see-alsos for importlib.metadata/version
0 Notes
No notes for version