In [1]:
import psutil

In [16]:
sum(psutil.cpu_percent(interval=1, percpu=True))


Out[16]:
3.0

In [ ]: