mamkit package#

Subpackages#

Submodules#

mamkit.version module#

mamkit.version.parse_version_info(version_str)#

Parse a version string into a tuple.

Parameters:

version_str (str) – The version string.

Returns:

The version info,

Return type:

tuple[int | str]

Module contents#

mamkit.digit_version(version_str, length=4)#

Convert a version string into a tuple of integers.

This method is usually used for comparing two versions. For pre-release versions: alpha < beta < rc.

Parameters:
  • version_str (str) – The version string.

  • length (int) – The maximum number of version levels. Default: 4.

Returns:

The version info in digits (integers).

Return type:

tuple[int]