Skip to main content

pypci-ng

Downloads PyPI - Version

Static Badge Static Badge Static Badge

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.

demo0

demo1

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.

Release files for pypci-ng 0.3.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypci-ng 0.3.11
File Size Uploaded
pypci_ng-0.3.11.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypci-ng 0.3.11
File Interpreter ABI Platform
pypci_ng-0.3.11-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / pypci_ng-0.3.11.tar.gz

Download URL pypci_ng-0.3.11.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5c5c90b5004d686c045279ec809d20a0878ec7bee3273ad13bbf3317c5f97bb3
BLAKE2b-256 checksum
How to use checksums
c73b1b399501086eac132f2e3bacbd9a7e25b674ff0d0bad50d1a2f367a1c80c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release files / pypci_ng-0.3.11-py3-none-any.whl

Download URL pypci_ng-0.3.11-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
123d62e00d339d796f7671dcdfa2dd2fce0382d305ba9c3af4a2dd9cdceb5413
BLAKE2b-256 checksum
How to use checksums
c992519aed31dc7de3825d3f05da9b64a40f41f8b485b58f3256962e5b1bf0df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release history Release notifications | RSS feed

This release

0.3.11 This release

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page