eyconf.config.EYConf¶
- class eyconf.config.EYConf(schema: type[D])¶
Configuration class.
This class is used to generate a default configuration file from a schema represented by a dataclass.
It allows to generate, validate and load a configuration file.
Attributes
pathMethods
__init__(schema)Return the default yaml configuration as string.
get_file()Get the path to the configuration file.
refresh()Reload the configuration file.
- default_yaml() str¶
Return the default yaml configuration as string.
You may overwrite this method to customize the default configuration generation.
- refresh()¶
Reload the configuration file.