Fetch#

class ignis.services.fetch.FetchService(*args: Any, **kwargs: Any)#

A service for fetching system information.

Example usage:

from ignis.services.fetch import FetchService

fetch = FetchService.get_default()

print(fetch.os_name)
print(fetch.hostname)
print(fetch.kernel)
gproperty os_name: str#
  • read-only

The OS name.

gproperty os_id: str#
  • read-only

The OS ID.

gproperty os_build_id: str#
  • read-only

The OS build ID.

gproperty os_ansi_color: str#
  • read-only

The OS ANSI color.

gproperty os_home_url: str#
  • read-only

The OS homepage URL.

gproperty os_documentation_url: str#
  • read-only

The OS documentation URL.

gproperty os_support_url: str#
  • read-only

The OS support URL.

gproperty os_bug_report_url: str#
  • read-only

The OS bug report URL.

gproperty os_privacy_policy_url: str#
  • read-only

The OS privacy policy URL.

  • read-only

The OS logo icon name.

gproperty os_logo_dark: str#
  • read-only

The OS dark logo icon name.

gproperty os_logo_text: str#
  • read-only

The OS logo with text icon name.

gproperty os_logo_text_dark: str#
  • read-only

The OS dark logo with text icon name.

gproperty session_type: str | None#
  • read-only

The current session type (wayland/x11).

gproperty current_desktop: str | None#
  • read-only

The current desktop environment.

gproperty hostname: str#
  • read-only

The hostname of this machine.

gproperty kernel: str#
  • read-only

Kernel version.

gproperty uptime: tuple[int, int, int, int]#
  • read-only

The current uptime (days, hours, minutes, seconds).

You can use Poll to get the current uptime every minute or second.

gproperty cpu: str#
  • read-only

CPU model.

gproperty cpu_temp: float#
  • read-only

Current CPU temperature.

gproperty mem_info: dict[str, int]#
  • read-only

The dictionary with all information about RAM.

gproperty mem_total: int#
  • read-only

Total amount of RAM.

gproperty mem_available: int#
  • read-only

Available amount of RAM.

gproperty mem_used: int#
  • read-only

Vendor of the motherboard.

gproperty board_vendor: str#
  • read-only

Motherboard name.

gproperty board_name: str#
  • read-only

BIOS/UEFI version.

gproperty gtk_theme: str | None#
  • read-only

Current GTK theme.

gproperty icon_theme: str | None#
  • read-only

Current icon theme.