I need to get the info under what environment the software is running. Does python have a library for this purpose?
I want to know the following info.
- OS name/version
- Name of the CPU, clock speed
- Number of CPU core
- Size of memory
I need to get the info under what environment the software is running. Does python have a library for this purpose?
I want to know the following info.
The os module has the uname function to get information about the os & version:
For my system, running CentOS 5.4 with 2.6.18 kernel this returns:
some of these could be obtained from the
platform
module:Output Sample: