mlrl.util.version module¶
Author: Michael Rapp (michael.rapp.ml@gmail.com)
Provides utilities for dealing with version numbers.
- class mlrl.util.version.Version(numbers: tuple[int, ...])¶
Bases:
objectRepresents a version.
- Attributes:
numbers: The version numbers
- static parse(version: str, skip_on_error: bool = False) Version¶
Parses and returns a version from a given string.
- Parameters:
version – The string to be parsed
skip_on_error – True, if all remaining version numbers should be skipped if one of them could not be parsed, False if an error should be raised
- Returns:
The version that has been parsed