Psutil

Psutil is a Python library for accessing system and process information, offering functionalities for monitoring CPU, memory, disk, and network usage.

Usage

import psutil # List all processes running on the local machine for proc in psutil.process_iter(['pid', 'name', 'username']): print(proc.info)

AI/LLM's are quite good with psutil.
๐Ÿ‘‰ Try asking ReMark