MacOsDeviceInfo
Device information snapshot for macOS hosts.
Returned by flet.Page.get_device_info when the current platform is macOS. Includes CPU, memory, model, and OS version fields collected from native system APIs.
Inherits: DeviceInfo
Properties
active_cpus- Number of active CPUs.arch- Machine CPU architecture.computer_name- Name given to the local machine.cpu_frequency- Device CPU frequency.host_name- Operating system type.kernel_version- Machine kernel version.major_version- The major release number, such as10in version 10.9.3.memory_size- Machine's memory size.minor_version- The minor release number, such as9in version 10.9.3.model- Device model identifier.model_name- Device model name.os_release- Operating system release number.patch_version- The update release number, such as3inversion 10.9.3.system_guid- Device GUID.
Properties
archinstance-attribute
arch: strMachine CPU architecture.
Note
Apple Silicon Macs can return "x86_64" if app runs via Rosetta.
major_versioninstance-attribute
major_version: intThe major release number, such as 10 in version 10.9.3.
minor_versioninstance-attribute
minor_version: intThe minor release number, such as 9 in version 10.9.3.
model_nameinstance-attribute
model_name: strDevice model name.
For example: "MacBook Pro (16-inch, 2021)", "iMac (24-inch, 2024)".
patch_versioninstance-attribute
patch_version: intThe update release number, such as 3 in version 10.9.3.