Fetch#
- class ignis.services.fetch.FetchService(*args: Any, **kwargs: Any)#
System info service.
- Properties:
os_name (
str
, read-only): OS name.os_id (
str
, read-only): OS ID.os_build_id (
str
, read-only): OS build ID.os_ansi_color (
str
, read-only): OS ANSI color.os_home_url (
str
, read-only): OS homepage URL.os_documentation_url (
str
, read-only): OS documentation URL.os_support_url (
str
, read-only): OS support URL.os_bug_report_url (
str
, read-only): OS bug report URL.os_privacy_policy_url (
str
, read-only): OS privacy policy URL.os_logo (
str
, read-only): OS logo icon name.os_logo_dark (
str
, read-only): OS dark logo icon name.os_logo_text (
str
, read-only): OS logo with text icon name.os_logo_text_dark (
str
, read-only): OS dark logo with text icon name.session_type (
str
, read-only): Current session type (wayland/x11).current_desktop (
str
, read-only): Current desktop environment.hostname (
str
, read-only): Hostname.kernel (
str
, read-only): Kernel version.uptime (
Tuple[int, int, int, int]
, read-only): Current uptime, (days, hours, minutes, seconds). You can useUtils.Poll
to get the current uptime every minute or second.cpu (
str
, read-only): CPU model.mem_info (
Dict[str, int]
, read-only): Dictionary with all information about RAM.mem_total (
int
, read-only): Total amount of RAM.mem_available (
int
, read-only): Available amount of RAM.board_vendor (
str
, read-only): Vendor of the motherboard.board_name (
str
, read-only): Motherboard name.bios_version (
str
, read-only): BIOS/UEFI version.gtk_theme (
str | None
, read-only): Current GTK theme.icon_theme (
str | None
, read-only): Current icon theme.
Example usage:
from ignis.service import FetchService fetch = FetchService.get_default() print(fetch.os_name) print(fetch.hostname) print(fetch.kernel)