lshw is a small tool to extract detailed information on the hardware configuration of the machine.
pip install lshw
from lshw.client import ListHardware
list_hardware = ListHardware()
result = list_hardware.read_data(list_hardware.get_nic_data())
print(result)
MIT