Registry / devops / libpci

libpci

JSON →
library0.2pypypi✓ verified 80d ago

Pure-Python, high-level bindings to libpci, providing access to PCI device information. Current version 0.2, low release cadence (last release 2016). Actively maintained? Possibly minimal.

pip install libpci
INSTALL
IMPORT
SIG · LIBPCI
L
libpci
devopspythonv0.2
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LibPCI
from libpci import LibPCI
import pci
wrapper
from libpci import wrapper
import pci

List all PCI devices with vendor and device names.

import pci # Enumerate all PCI devices devices = pci.PCIDevices() for dev in devices: print(dev.address, dev.vendor_name, dev.device_name)
Debug
Known issues
gotchalibpci requires libpci (or libpci-dev) system library installed. On Debian/Ubuntu: sudo apt install libpci-dev. Otherwise ImportError about missing shared library.
fix
Install system package: sudo apt-get install libpci-dev
affects: all
gotchaInitialization might require root privileges to read PCI config space. Use 'pci.PCIDevices()' may fail with PermissionError if /sys/bus/pci/devices is read-only for non-root.
fix
Run script as root or use sudo.
affects: all
deprecatedlibpci 0.2 is last release; no updates since 2016. Consider using 'pypci' for more modern API.
fix
Switch to pypci: pip install pypci
affects: 0.2
Upgrade
Version history
0.2latest on PyPI · released Apr 24, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
libpci — pip install libpci · libregistry