Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting computer hardware information

I tried to get all information about a computer by python but there is no good library to find something like monitor or keyboard or details of graphic card.

Is it possible to get list of hardware or devices of computers?

like image 619
Hamid Avatar asked Oct 31 '22 16:10

Hamid


1 Answers

I personally find the psutil library interesting for monitoring everything that is going on on your system:

https://github.com/giampaolo/psutil

Moreover, you might have a look at the platform lib, which you can use to gather information, guess what, platform, yes.

https://docs.python.org/2/library/platform.html

If you're on linux, it might be a solution to use some system command like lspci and friends to gather other information as well. See, for instance this: http://www.commandlinefu.com/commands/using/lspci

There's also a similar question on stack overflow: Python, In linux obtain VGA specifications via lspci or HAL?

like image 112
ferdy Avatar answered Nov 12 '22 18:11

ferdy