The open-source monitoring tool Glances can be used as a Python library in version 4.4.0. It also includes a snapshot mode and many bug fixes.
Learn how to use the Core Temp application to monitor your CPU temperature and prevent overheating on Windows 11.