Using Python, how can information such as CPU usage, memory usage (free, used, etc), process count, etc be returned in a generic manner so that the same code can be run on L
psutil should provide what you need:
[...] cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) [...] [...] supports Linux, Windows, OSX, FreeBSD and Sun Solaris, both 32-bit and 64-bit architectures [...]
[...] cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) [...]
[...] supports Linux, Windows, OSX, FreeBSD and Sun Solaris, both 32-bit and 64-bit architectures [...]