smah.settings.system.operating_system.info
- class smah.settings.system.operating_system.info.BSDInfo(config_data=None, fetch=False)[source]
Bases:
BaseInfoRepresents BSD-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
- class smah.settings.system.operating_system.info.BaseInfo(kind: str, config_data=None, fetch=False)[source]
Bases:
object- CONFIG_VSN = '0.0.1'
- class smah.settings.system.operating_system.info.DarwinInfo(config_data=None, fetch=False)[source]
Bases:
BaseInfoRepresents Darwin (macOS)-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
- class smah.settings.system.operating_system.info.LinuxInfo(config_data=None, fetch=False)[source]
Bases:
BaseInfoRepresents 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 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
- class smah.settings.system.operating_system.info.WindowsInfo(config_data=None, fetch=False)[source]
Bases:
BaseInfoRepresents Windows-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
Modules