Skip to content

Feature/yaml configuration

Marius Kriegerowski requested to merge feature/yaml-configuration into master

Added a yamlconfiguration decorator that can be used to configure decorated methods by providing a configuration file. E.g.

    @yaml_configurable
    def test_method(one_parameter="apple", config_file=None):
        print(one_parameter)

    test_method(config_file="my-test-config.yml")

where the content of "my-test-config.yml" is

'one_parameter: banana'

will print:

>> banana

\approve @fd \fyi @ds @prehn

Edited by Marius Kriegerowski

Merge request reports