https://github.com/zaibon/py-dmidecode
python lib that parse the output of dmidecode
https://github.com/zaibon/py-dmidecode
dmidecode python smbios system
Last synced: 9 months ago
JSON representation
python lib that parse the output of dmidecode
- Host: GitHub
- URL: https://github.com/zaibon/py-dmidecode
- Owner: zaibon
- License: apache-2.0
- Created: 2018-02-28T12:03:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-07-02T15:51:32.000Z (9 months ago)
- Last Synced: 2025-07-02T16:44:53.056Z (9 months ago)
- Topics: dmidecode, python, smbios, system
- Language: Python
- Size: 225 KB
- Stars: 21
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-dmidecode [](https://codecov.io/gh/zaibon/py-dmidecode) [](https://securityscorecards.dev/viewer/?uri=github.com/zaibon/py-dmidecode)
Small tool that parses output of dmidecode command
## How to use
```python
from dmidecode import DMIDecode
# create parsing instance by passing dmidecode output
dmi = DMIDecode()
# some of the pre-defined queries
print('Manufacturer:\t', dmi.manufacturer())
print('Model:\t\t', dmi.model())
print('Firmware:\t', dmi.firmware())
print('Serial number:\t', dmi.serial_number())
print('Processor type:\t', dmi.cpu_type())
print('Number of CPUs:\t', dmi.cpu_num())
print('Cores count:\t', dmi.total_enabled_cores())
print('Total RAM:\t{} GB'.format(dmi.total_ram()))
```
Alternatively instead of running dmidecode locally you can use DMIParse by passing dmidecode output as an argument:
```python
from dmidecode import DMIParse
dmi = DMIParse(raw)
```
Other information can be easily retrieved by analyzing dmi.data and module code.
## Possible limitations
Tested with dmidecode versions 2.11, 2.12 and 3.2