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)
property os_name: str#
  • read-only

The OS name.

property os_id: str#
  • read-only

The OS ID.

property os_build_id: str#
  • read-only

The OS build ID.

property os_ansi_color: str#
  • read-only

The OS ANSI color.

property os_home_url: str#
  • read-only

The OS homepage URL.

property os_documentation_url: str#
  • read-only

The OS documentation URL.

property os_support_url: str#
  • read-only

The OS support URL.

property os_bug_report_url: str#
  • read-only

The OS bug report URL.

property os_privacy_policy_url: str#
  • read-only

The OS privacy policy URL.

  • read-only

The OS logo icon name.

property os_logo_dark: str#
  • read-only

The OS dark logo icon name.

property os_logo_text: str#
  • read-only

The OS logo with text icon name.

property os_logo_text_dark: str#
  • read-only

The OS dark logo with text icon name.

property session_type: str | None#
  • read-only

The current session type (wayland/x11).

property current_desktop: str | None#
  • read-only

The current desktop environment.

property hostname: str#
  • read-only

The hostname of this machine.

property kernel: str#
  • read-only

Kernel version.

property 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.

property cpu: str#
  • read-only

CPU model.

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

The dictionary with all information about RAM.

property mem_total: int#
  • read-only

Total amount of RAM.

property mem_available: int#
  • read-only

Available amount of RAM.

property mem_used: int#
  • read-only

Vendor of the motherboard.

property board_vendor: str#
  • read-only

Motherboard name.

property board_name: str#
  • read-only

BIOS/UEFI version.

property gtk_theme: str | None#
  • read-only

Current GTK theme.

property icon_theme: str | None#
  • read-only

Current icon theme.