gaps.config.YAMLHandler#
- class YAMLHandler[source]#
Bases:
Handler
YAML config file handler
Methods
dump
(config, stream)Write the config to a stream (YAML file)
dumps
(config)Convert the config to a YAML string
load
(file_name)Load the file contents
loads
(config_str)Parse the YAML string into a config dictionary
write
(file_name, data)Write the data to a file
Attributes
FILE_EXTENSION
- classmethod load(file_name)#
Load the file contents
- classmethod write(file_name, data)#
Write the data to a file