smah.settings.system.operating_system.operating_system

Classes

OperatingSystem([config_data])

class smah.settings.system.operating_system.operating_system.OperatingSystem(config_data=None)[source]

Bases: object

CONFIG_VSN: str = '0.0.1'
static config_vsn() str[source]

Returns the version of the configuration.

Returns:

The version of the configuration.

Return type:

str

info: BaseInfo | None
is_configured()[source]

Checks if the system is configured.

Returns:

True if the system is configured, False otherwise.

Return type:

bool

static load_info(config_data: dict | None) BaseInfo | None[source]

Loads OS-specific details from the configuration data.

Parameters:

config_data (dict) – The configuration data.

Returns:

The OS-specific details.

Return type:

object

name: str | None
release: str | None
show(options=None)[source]
to_yaml(options=None)[source]

Converts the system configuration to a YAML object.

Parameters:

options (dict) – The options to include in the YAML object.

Returns:

The system configuration as a YAML object.

Return type:

dict

type: str | None
version: str | None
static version_supported(version) bool[source]

Checks if the given version is supported.

Parameters:

version (str) – The version to check.

Returns:

True if the version is supported, False otherwise.

Return type:

bool

vsn: str | None