As of September 2017, this project is deprecated.
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.
from cpuutilization import cpuutilization
print(cpuutilization.get_utilization())