pylspci
Simple parser for lspci -mmnn.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- 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 · maintenance · safety
GNU General Public License 3 (copyleft) — 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.
last release 2022-08-04 (1471 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 190,033 downloads/mo, #9,916 on PyPI
Alternatives
Verify before relying
pip install pylspci
import pylspci
parser = pylspci.Parser()
devices = parser.parse_output(lspci_output_string)- 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.
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 on this page. Verify before relying on it.
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
pylspci on PyPI
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.
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.
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)
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 the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagecached-property |
| Maintenance | Abandoned 1,471 days since the last release |
| First released | |
| Downloads | 190,033 / month, #9,916 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Natural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: LibrariesTopic :: System :: HardwareTopic :: UtilitiesTyping :: Typed |
Evidence: pylspci-0.4.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “lspci parser”
- pylspciParses the output of the lspci command to extract and structure PCI…
- ArpeggioArpeggio is a recursive descent parser with memoization that…
- parsyParsy is a parser combinator library that lets you build complex text…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also libpci · spidev · blkinfo · PyRIC · libusbsio · cpe · svql · ldfparser · hidapi · textfsm