Get linux server hardware information. 获取Linux服务器硬件明细。


Keywords
pip, hwpy, Hardware, 硬件检测
License
MIT
Install
pip install hwpy==0.3.7

Documentation

install(python2.7 and python3.6)

lastest psutil maybe required

# yum install -y gcc python-devel dmidecode
# pip install -U setuptools 
# pip install -U psutil
# pip install hwpy

usage

# python -m hwpy
from hwpy import info
info.main()
info.hwlist
info.cpu
info.net    
info.disk
info.part   
info.host
info.mem