skillfed

dmiparser

This parses dmidecode output to Python objects. The Python module supports multiple output formats (JSON, JSONC, YAML, XML) via the format parameter, and provides CLI tools with the same capabilities

dmiparser v7.2 83.6K downloads/30d#14,066 on PyPI3
Permissive license MIT Active released

What it is and what it does

Dmiparser wraps the output of the dmidecode command-line tool—which reads system firmware and hardware information from SMBIOS tables—and converts it into structured, queryable Python objects. It provides two main entry points: DmiParser accepts dmidecode output as a string and parses it, while DmiDecoder runs dmidecode directly and parses the result. Both support multiple output formats (JSON, JSONC, YAML, XML) and a pretty-print mode for human-readable output.

The package is useful for system administrators and tools that need to programmatically extract hardware details (CPU, memory, firmware, BIOS settings) from Linux systems. It includes both a Python API for integration into larger scripts and standalone CLI commands (dmiparser and dmidecoder) for shell pipelines. The single runtime dependency is pyyaml, and it requires Python 3.6 or later.

Use it for:

  • Extract CPU specifications (model, speed, core count) from a running system for inventory or monitoring.
  • Convert raw dmidecode output to JSON for ingestion into configuration management or asset tracking systems.
  • Parse BIOS and firmware information from multiple servers and export as YAML for comparison or auditing.
  • Build system diagnostics tools that query hardware capabilities without parsing unstructured text.
  • Integrate hardware metadata into cloud provisioning or bare-metal deployment workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses dmidecode output into structured Python objects and exports them as JSON, JSONC, YAML, or XML via a Python API or command-line tools.

Yes. The package solves a real problem (parsing dmidecode into usable data structures) with low install friction, active maintenance, no security vulnerabilities, and permissive licensing. It is suitable for system administration, inventory, and hardware diagnostics workflows. The recent 7.0 breaking changes (format and pretty parameters) are documented and straightforward to migrate.

Install

dmiparser on PyPI

pip

pip install dmiparser

uv

uv add dmiparser

poetry

poetry add dmiparser

Installing dmiparser

Before you install

Low friction: pure Python wheel with a single runtime dependency (pyyaml). Actively maintained with a release 9 days old.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

Quickstart

pip install dmiparser

from dmiparser import DmiParser
text = "# dmidecode 3.6\n..."  # dmidecode output
parser = DmiParser(text, format="json", pretty=True)
print(parser.data)

DmiDecoder requires superuser permissions to run dmidecode; DmiParser itself works with any dmidecode text input.

Verify before relying

  • Whether the package handles all dmidecode versions or has known compatibility limits.
  • Performance characteristics when parsing large or complex dmidecode outputs.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pyyaml
Maintenance actively maintained — 9 days since the last release
Last repo commit
First released
Downloads 83,551/month — #14,066 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dmiparser-7.2-py3-none-any.whl

Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only

Tags

dmidecode parser pythonsystem firmware information extractiondmi data to json yamlhardware information parsingsmbios output formatter
system-administrationhardware-inventory

More Monitoring packages