HWProbe

HWProbe is a Python library that gathers info about system components, such as the CPU, memory, storage, and graphics, across Linux, macOS, and Windows.

Features

  • Consistent structure on all platforms, using Pydantic models.

  • Usage stays the same everywhere, with no need for code changes across platforms.

  • Supports data retrieval as Class objects, Python dictionaries, or JSON-parsable strings.

  • For a list of supported hardware components, refer to Supported Components.

Install

Prerequisites: Python 3.9 or newer.

pip install HWProbe

Quick Example

from hwprobe import HardwareManager

manager = HardwareManager()
hardware = manager.fetch_hardware_info()
print(hardware.model_dump_json(indent=2))

Contents