psutil

5.8.0

Resort to this cross-platform module for Python in order to keep a record of system utilization and running process using a multitude of command line tools

psutil is a software utility that can work cross-platform and provide you with various information about system utilization as well as running processes in Python. Users may also want to know that, apart from Windows, the library can be used on Linux, OpenBSD, NetBSD, OSX, and Sun Solaris.
Coming with support for both 32-bit and 64 environments, psutil can handle Python versions ranging from 2.7 to 3.6, and the array of operations it allows you to carry out is quite broad as well.
As such, limiting process resources is possible using this Python library, as is the case of system monitoring and profiling. Aside from that, managing running processing should raise no difficulty whatsoever.
It is also worth pointing out that this Python module can open the door to lots of extra functionality provided that you turn to command line tools. Just to get an idea, it should be mentioned a series of examples, such as ifconfig, ps, pmap, top, lsof, who, kill, uptime, tty, free, nice, ionice, df, iostat, iotop, pidof, netstat, or taskset.
Comprehensive documentation detailing psutil’s capabilities is provided by the developer at this link and should be of great help when trying grasp its functionality.

System requirements