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
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 dmiparseruv
uv add dmiparserpoetry
poetry add dmiparserInstalling 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
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
jsondiffComputes structured diffs between JSON and…
permissive · top 5,000 on PyPI
pyamlProduces human-readable, diff-friendly YAML…
permissive · top 5,000 on PyPI
compact-jsonFormats JSON into compact, human-readable…
permissive · top 5,000 on PyPI
tabulateFormats and prints tabular data in plain text…
permissive · top 1,000 on PyPI
prettierfierReformats HTML and XML strings with intelligent…
permissive · top 15,000 on PyPI
yqyq is a command-line processor that applies jq…
permissive · top 5,000 on PyPI
jsonc-parserParses JSON files with comments (.jsonc) and…
permissive · top 15,000 on PyPI
cmeel-urdfdomParses URDF (U-Robot Description Format) XML…
permissive · top 5,000 on PyPI
demjson3demjson3 encodes, decodes, and validates JSON…
copyleft · top 15,000 on PyPI
python-rapidjsonFast JSON serialization and deserialization…
permissive · top 5,000 on PyPI