lib.item_conversion

This file is a special version of the configuration loader. It has been modified to support the conversion from CONF to YAML format. This configuration loader is only called by the converter tools/conf_to_yaml_converter.py.

lib.item_conversion.convert_yaml(data)[source]

*Converter Special *

Convert data structure to yaml format

Parameters:data – OrderedDict to convert
Returns:yaml formated data
lib.item_conversion.is_ruamelyaml_installed()[source]
lib.item_conversion.parse_for_convert(filename=None, conf_code=None, config=None)[source]
lib.item_conversion.yaml_save(filename, data)[source]

*Converter Special *

Save contents of an OrderedDict structure to a yaml file

Parameters:
  • filename – name of the yaml file to save to
  • data – OrderedDict to save