A module for getting the CPU utilization on any OS with Python 2 & 3
Py-cpuutilization should work without any extra programs or libraries,
beyond what your OS provides. The goal is for this to work on every OS
that Python supports. Works on Linux, OS X, Windows, BSD, Solaris,
Cygwin, and Haiku.
Run as a script
from cpuutilization import cpuutilization
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.