pypci, a pciutils-like library for fetching system PCI/PCI-E information but written mostly in python.
Project description
pypci-ng
pypci-ng, a pciutils-like library for fetching system PCI/PCI-E devices but written mostly in python. Currently, this package ONLY implements the same functionality as lspci, i.e. scanning and listing all PCI/PCI-E devices. More functionalities are under development.
Install
Just install it directly by pip.
pip install pypci-ng
To upgrade pypci:
pip install pypci-ng --upgrade
Usage
Use as a command line tool
You can use this tool directly from the command line with the following command, just like lspci.
pypci
Or use -d flag to print driver information.
pypci -d
For more command line flags, see:
pypci -h
Please note that the command line entry for pypci is created by pip, and depending on the user, this entry may not in the system PATH. If you encounter this problem, pip will give you a prompt, follow the prompts to add entry to the system PATH.
Use as a Python Package
You can also use this package in Python, here is the demo:
import pypci
pci = pypci.PCI()
vga_devices = pci.FindAllVGA()
nic_devices = pci.FindAllNIC()
More functionalities are under development.
Supported (Tested) OS
- Linux
- Windows 10 and above
Build from source
Build tools
Make sure the following Python build tools are already installed.
- setuptools
- build
- twine
Build package
clone the project, and run:
python -m build
After the build process, the source package and the binary whl package can be found in the dist folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypci_ng-0.3.9.tar.gz.
File metadata
- Download URL: pypci_ng-0.3.9.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f503b79cb954297864cd1de003eea14fdf5d49fd9320764bcd72554124ae3223
|
|
| MD5 |
36674d789f8c95ef96df6b256b710660
|
|
| BLAKE2b-256 |
cbdcb16861e6a0c840b5cf9bb59679230b06912245474bd37e279981122d31f1
|
File details
Details for the file pypci_ng-0.3.9-py3-none-any.whl.
File metadata
- Download URL: pypci_ng-0.3.9-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72f2f32dbbd82bbefb5e3d064845815d1a5bbf37ce2c97d58e4af8e1f7129b7c
|
|
| MD5 |
923dc72dbe158a5cc6633c8ae54d2d3c
|
|
| BLAKE2b-256 |
31b79a43eb1cc84d84c4a436e9d5987f38d4afa3a7c2a4d68f82519c715a16b1
|