Skip to main content

get_version_tuple

Return a tuple of version numbers (e.g. (1, 2, 3)) from the version string (e.g. '1.2.3').

def get_version_tuple(
version: string
) - > tuple

Return a tuple of version numbers (e.g. (1, 2, 3)) from the version string (e.g. '1.2.3').

Parameters

NameTypeDescription
versionstringThe version string to be parsed into numeric components.

Returns

TypeDescription
tupleA tuple of integers representing the numeric components of the version string, stopping at the first non-integer component.