Fork me on GitHub

bolero.utils.from_yaml

bolero.utils.from_yaml(filename, conf_path=None)[source]

Create objects from YAML configuration file.

Parameters:
filename : string

The name of the YAML file to load.

conf_path : string, optional (default: $BL_CONF_PATH)

You can specify a path that is searched for the configuration file. Otherwise we try to read it from the environment variable ‘BL_CONF_PATH’. If that environment variable is not present we search in the current path.

Returns:
objects : dict

Objects created from each entry of config with the same keys.

See also

See
func:from_dict.