macOS System Report
This report only runs on macOS (darwin) systems.
System Information
import platform
import subprocess
print(f"System: {platform.system()}")
print(f"Release: {platform.release()}")
print(f"Version: {platform.version()}")
print(f"Machine: {platform.machine()}")
print(f"Processor: {platform.processor()}")
System: Darwin
Release: 24.6.0
Version: Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:37 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_ARM64_VMAPPLE
Machine: arm64
Processor: arm
macOS-Specific Info
import subprocess
# Get macOS version name
result = subprocess.run(["sw_vers"], capture_output=True, text=True)
print("Software Version:")
print(result.stdout)
# Get hardware overview
result = subprocess.run(["system_profiler", "SPHardwareDataType"], capture_output=True, text=True)
print("\nHardware Overview:")
for line in result.stdout.split('\n')[:15]:
if line.strip():
print(line)
Software Version:
ProductName: macOS
ProductVersion: 15.7.2
BuildVersion: 24G325
Hardware Overview:
Hardware:
Hardware Overview:
Model Name: Apple Virtual Machine 1
Model Identifier: VirtualMac2,1
Model Number: VM0001LL/A
Chip: Apple M1 (Virtual)
Total Number of Cores: 3
Memory: 7 GB
System Firmware Version: 13822.41.1
OS Loader Version: 11881.140.96
Serial Number (system): Z32Y7V1D6D
Hardware UUID: 9AA6A94F-46BC-5643-82D0-EE9A04AAE185
Provisioning UDID: e3ea35497e11dcf9da74ace0c561f45b3a10084e
Disk Usage
import shutil
total, used, free = shutil.disk_usage("/")
print(f"Total: {total // (1024**3)} GB")
print(f"Used: {used // (1024**3)} GB")
print(f"Free: {free // (1024**3)} GB")
print(f"Usage: {used / total * 100:.1f}%")
Total: 319 GB
Used: 279 GB
Free: 40 GB
Usage: 87.5%