Skip to main content

py-dmidecode codecov OpenSSF Scorecard

Small tool that parses output of dmidecode command

How to use

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:

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

Release files for py-dmidecode 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-dmidecode 0.1.3
File Size Uploaded
py_dmidecode-0.1.3.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-dmidecode 0.1.3
File Interpreter ABI Platform
py_dmidecode-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / py_dmidecode-0.1.3.tar.gz

Download URL py_dmidecode-0.1.3.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a52d5f456b962e75ee3441985d4fe3d678c2f131d640e1db9d5385f7e735dc2c
BLAKE2b-256 checksum
How to use checksums
ab51d127a36b6196771b5b2573df81dbb9350a0e009cb675bfb95b72ab9cc177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

Release files / py_dmidecode-0.1.3-py3-none-any.whl

Download URL py_dmidecode-0.1.3-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a507ee9ccb380ba7e6007264ab70bee3d66fde58d84f7a8b8d77e4a5e4fc3ef9
BLAKE2b-256 checksum
How to use checksums
1cfa4bbc787ce29494ea793702d57e638af23d031aebdb10bf25bcdce339488a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page