manen.helpers
¶
- manen.helpers.poll(fn, args: tuple[~typing.Any, ...] | None = None, kwargs: dict[str, ~typing.Any] | None = None, timeout: float = 10, step: float = 0.5, evaluate_success: ~typing.Callable = <function <lambda>>)[source]¶
- manen.helpers.version(version_str: str) Version [source]¶
Helper function to convert a version string into a tuple. The versioning scheme is described here. The input will be validated with the regular expression
^[\d]+.[\d]+.[\d]+.[\d]+$
and raised aValueError
if it doesn’t match.Caution
This versioning system is not compliant with semantic versioning rules.
- Parameters:
version_str (str) – string to be converted to a tuple
- Raises:
ValueError – raised if the input doesn’t match the pattern
- Returns:
parsed version
- Return type:
Version