smah.settings.settings
Classes
|
- class smah.settings.settings.Settings(config=None)[source]
Bases:
object- CONFIG_VSN = '0.0.1'
- DEFAULT_CONFIG_FILE = '/home/docs/.smah/config.yaml'
- config: str
- is_configured()[source]
Checks if the settings are fully configured.
- Returns:
True if the settings are configured, False otherwise.
- Return type:
bool
- log(level: int = 10, format: bool = True, print: bool = False) None[source]
Log settings and optionally print to stdout.
- Parameters:
format (bool) – Flag to enable/disable formatting of settings when printing.
print (bool) – Flag to enable/disable printing of settings.
- to_yaml(options=None) dict[source]
Returns the settings as a YAML dictionary.
- Returns:
The settings as a YAML dictionary.
- Return type:
dict
- vsn: str | None