smah.settings.system.operating_system.info.linux_info

Classes

LinuxInfo([config_data, fetch])

Represents Linux-specific OS details.

class smah.settings.system.operating_system.info.linux_info.LinuxInfo(config_data=None, fetch=False)[source]

Bases: BaseInfo

Represents Linux-specific OS details.

errors

List of errors encountered during initialization.

Type:

list

source

The source of the OS details.

Type:

str

details

The OS details.

Type:

dict

vsn

Version string.

Type:

str

configured

Indicates if the details are configured.

Type:

bool

static info() Tuple | None[source]
static kind()[source]

Returns the kind of the OS details.

Returns:

The kind of the OS details.

Return type:

str

static os_release_details() Tuple | None[source]

Retrieves OS release details from /etc/os-release.

Returns:

A tuple containing the source and details dictionary.

Return type:

tuple

static proc_details() Tuple | None[source]

Retrieves OS details from /proc/version.

Returns:

A tuple containing the source and details dictionary.

Return type:

tuple

static uname_details() Tuple | None[source]

Retrieves OS details using the uname command.

Returns:

A tuple containing the source and details dictionary.

Return type:

tuple