YamlLoader#

class YamlLoader(app, filename, *args, **kwargs)#

Bases: DictLikeLoaderMixin, FileLoader

Loader for Yaml files.

Parameters:
load_config()#

Populate the config attribute from YAML file.

Return type:

Iterator[ConfigValue]

serialize_item(value, trait)#

Serialize item.

Parameters:
  • value (Any)

  • trait (TraitType)

Return type:

Any

serialize_section(data, section, fullpath, comment='full')#

Populate data mapping.

Parameters:
Return type:

None

setup_yaml()#

Set up main YAML instance.

You can customize the yaml parsing and serializing here.

Return type:

None

write(fp, comment='full', comment_default=False)#

Return lines of configuration file corresponding to the app config tree.

Parameters:
  • fp (IO)

  • comment (str)

  • comment_default (bool)

Return type:

None

yaml: YAML#