OsRelease
Parsed operating-system identification data with standard-aware projections.
Named fields apply the defaults and conversions prescribed by the os-release specification.
Inherits from: Iterable[Tuple[Str, Str]]
Implements: Index[Str, Str], Unpack[Str, Str, Rest: Unpack[Str, Str]]
Fields
ansi_color @ (term.Style | nil)[get]The terminal style specified by
ANSI_COLOR, if defined.ansi_color_reverse @ (term.Style | nil)[get]The terminal style specified by
ANSI_COLOR_REVERSE, if defined.bug_report_url @ (url.Url | nil)[get]The bug-report URL, if valid and defined.
build_id @ (Str | nil)[get]The build identifier, if defined.
confext_level @ (Str | nil)[get]The configuration-extension compatibility level, if defined.
confext_scope @ Set[ExtensionScope][get]An ordered set of configuration-extension scopes.
cpe_name @ (Str | nil)[get]The CPE name, if defined.
default_hostname @ (Str | nil)[get]The default hostname, if defined.
display_name @ term.Text[get]The fancy name when available, otherwise the ANSI-colored presentation name.
documentation_url @ (url.Url | nil)[get]The documentation URL, if valid and defined.
experiment @ (Str | nil)[get]The experiment identifier, if defined.
experiment_url @ (url.Url | nil)[get]The experiment URL, if valid and defined.
fancy_name @ (term.Text | nil)[get]The preformatted fancy presentation name, if defined.
home_url @ (url.Url | nil)[get]The project's home page, if valid and defined.
id @ Str[get]The operating-system identifier, defaulting to
linux.id_like @ Set[Str][get]An ordered set of compatible operating-system identifiers.
image_id @ (Str | nil)[get]The image identifier, if defined.
image_version @ (Str | nil)[get]The image version, if defined.
logo @ (Str | nil)[get]The icon name for the operating system, if defined.
name @ Str[get]The operating system name, defaulting to
Linux.portable_prefixes @ Set[Str][get]An ordered set of portable-service unit-name prefixes.
portable_scope @ PortableScope[get]The portable-service scope, defaulting to
:SYSTEM:.pretty_name @ Str[get]The presentation name, defaulting to
Linux.privacy_policy_url @ (url.Url | nil)[get]The privacy-policy URL, if valid and defined.
release_type @ ReleaseType[get]The release channel symbol, defaulting to
:STABLE:.support_end @ (time.Date | nil)[get]The support end date, in UTC, if valid and defined.
support_url @ (url.Url | nil)[get]The support URL, if valid and defined.
sysext_level @ (Str | nil)[get]The system-extension compatibility level, if defined.
sysext_scope @ Set[ExtensionScope][get]An ordered set of system-extension scopes.
variant @ (Str | nil)[get]The human-readable operating-system variant, if defined.
variant_id @ (Str | nil)[get]The operating-system variant identifier, if defined.
vendor_name @ (Str | nil)[get]The vendor name, if defined.
vendor_url @ (url.Url | nil)[get]The vendor's URL, if valid and defined.
version @ (Str | nil)[get]The human-readable operating-system version, if defined.
version_codename @ (Str | nil)[get]The operating-system version codename, if defined.
version_id @ (Str | nil)[get]The operating-system version identifier, if defined.
Methods
(index) key -> Str
Reads a parsed os-release assignment by key.
Parameters
| Name | Type | Description |
|---|---|---|
key |
Str |
(iter)() -> Iter[Tuple[Str, Str]]
Iterates the parsed os-release assignments.
(spread)() -> Spread[Str, Str]
Spreads the parsed os-release assignments.
(unpack)() -> Unpack[Str, Str, Rest: Unpack[Str, Str]]
Destructures the parsed os-release assignments.