YamlLoader#
- class YamlLoader(app, filename, *args, **kwargs)#
Bases:
DictLikeLoaderMixin,FileLoaderLoader for Yaml files.
- Parameters:
app (Application)
filename (str)
args (Any)
kwargs (Any)
- load_config()#
Populate the config attribute from YAML file.
- Return type:
- serialize_item(value, trait)#
Serialize item.
- serialize_section(data, section, fullpath, comment='full')#
Populate data mapping.
- 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.
- yaml: YAML#