system-information
How to get the system info with Python?
some of these could be obtained from the platform module: >>> import platform >>> platform.machine() ‘x86’ >>> platform.version() ‘5.1.2600’ >>> platform.platform() ‘Windows-XP-5.1.2600-SP2’ >>> platform.uname() (‘Windows’, ‘name’, ‘XP’, ‘5.1.2600’, ‘x86’, ‘x86 Family 6 Model 15 Stepping 6, GenuineIntel’) >>> platform.system() ‘Windows’ >>> platform.processor() ‘x86 Family 6 Model 15 Stepping 6, GenuineIntel’
How to find out the number of CPUs using python
If you have python with a version >= 2.6 you can simply use import multiprocessing multiprocessing.cpu_count() http://docs.python.org/library/multiprocessing.html#multiprocessing.cpu_count