Gist 12c85e5e65b7776fd6d86bf9cb00a1bc
✓ Published0🌍 Public
TThomasG77
Last edited Sep 28, 2021
Created on Sep 28, 2021
This example shows a diagnostic snapshot of the host machine, collecting system metadata into a JSON file. It builds a dictionary of platform details, network identifiers, and hardware statistics, then uses `pprint` to display the result and writes it to `out.json`. The script relies on `distro.linux_distribution()` for OS info, `psutil` for CPU, disk, and RAM usage, and `platform` and `socket` for release and hostname data. It also formats disk totals with `hurry.filesize.size` and computes the MAC address via `uuid.getnode()`.
AI-generated description