Yaml Loader module
This module defines a custom Yaml loader that support custom types
Expressions employ self
variable, which corresponds to the currently executing stage.
- class ExpressionEval(value, pattern=re.compile('\\$\\{([^}^{]+)\\}'), ctx=None, doc=None)[исходный код]
Базовые классы:
mldev.expression.Expression
- class MultiLine(value, pattern=re.compile('\\$\\{([^}^{]+)\\}'), ctx=None, doc=None)[исходный код]
Базовые классы:
mldev.expression.Expression
- class YamlLoaderWithEnvVars(path)[исходный код]
Базовые классы:
object
Class that loads yaml file and substitutes variables defined as ${var_name} in config from env (export var_name=var_value) or from /home/{username}/.config/mldev, if variables were passed as env vars in previous launches.
- load_config()[исходный код]
This method loads config with path self.experiment_file_path and returns dict with substituted variables.
- stage_context(stage)[исходный код]