smah.settings.system.operating_system.info.base_info

Classes

BaseInfo(kind[, config_data, fetch])

class smah.settings.system.operating_system.info.base_info.BaseInfo(kind: str, config_data=None, fetch=False)[source]

Bases: object

CONFIG_VSN = '0.0.1'
static config_vsn()[source]
static info() Tuple | None[source]
is_configured()[source]

Checks if the OS details are configured.

Returns:

True if the details are configured, False otherwise.

Return type:

bool

show(options=None)[source]
to_yaml(options=None)[source]

Converts the OS details to a YAML-compatible dictionary.

Returns:

The OS details in YAML format.

Return type:

dict