--- id: pylspci version: "0.4.3" license: GNU General Public License 3 license_treatment: copyleft maintenance: abandoned --- # pylspci — Simple parser for lspci -mmnn. License: copyleft · Maintenance: abandoned · Downloads: 190.0K/mo ## What it is and what it does pylspci is a Python parser that takes the text output of the lspci command (from the pciutils package) and converts it into structured, queryable Python objects. It handles the machine-readable -mmnn format and lets you programmatically inspect PCI bus devices, their IDs, and properties without manual string parsing. The package is a small, focused library with minimal dependencies—only cached-property at runtime. It was last released in August 2022 and is now abandoned, meaning no new features or bug fixes are forthcoming. It remains useful for stable, read-only tasks like enumerating hardware on systems where lspci is available, but should not be relied upon for evolving requirements or in production environments where maintenance matters. Use it for: - Enumerate PCI devices programmatically in system administration or hardware inventory scripts. - Parse lspci output in automated testing or hardware validation workflows. - Build device lookup tables or reports from raw lspci command output in Python applications. - Inspect PCI device IDs and vendor information without shell-parsing lspci text manually. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Parses the output of the lspci command to extract and structure PCI device information from the pciutils package. Yes, if you need to parse lspci output in Python and accept that the package is unmaintained. The code is stable for its narrow scope, has no known vulnerabilities, and low install friction. No, if you require active maintenance, bug fixes, or support for evolving hardware standards—the 1471-day gap since the last release and abandoned status are significant red flags for production use. ## Install pip install pylspci uv add pylspci poetry add pylspci ## Installing pylspci Before you install: Low install friction with a single lightweight dependency (cached-property). However, the package is abandoned—last release was 2022-08-04, over 1471 days ago—so no maintenance or bug fixes should be expected. License in practice: Licensed under GPLv3 (copyleft). Any derivative work or bundled distribution must also be open-source under compatible terms; proprietary projects should review licensing implications before use. Quickstart: pip install pylspci import pylspci parser = pylspci.Parser() devices = parser.parse_output(lspci_output_string) Requires lspci command-line tool from pciutils to be installed on the system; pylspci only parses its output, it does not provide the data itself. Verify before relying: - Whether the parser handles all lspci output formats and edge cases reliably, given the package is no longer maintained. - Compatibility with recent versions of pciutils and modern hardware PCI configurations. ## Package facts - License: GNU General Public License 3 (copyleft) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 190.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags lspci parser, pci device information, parse lspci output, hardware device enumeration, pci bus parsing, system hardware inventory, hardware-enumeration, system-tools [View on SkillFed](https://skillfed.io/packages/pylspci) · [View on PyPI](https://pypi.org/project/pylspci/)