# pypci-ng
[](https://pepy.tech/project/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.
```shell
pip install pypci-ng
```
To upgrade pypci:
```shell
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.
```shell
pypci
```
Or use -d flag to print driver information.
```shell
pypci -d
```
For more command line flags, see:
```shell
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:
```python
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:
```shell
python -m build
```
After the build process, the source package and the binary whl package can be found in the dist folder.
Raw data
{
"_id": null,
"home_page": null,
"name": "pypci-ng",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Xiao Ran <xiaoran.007@icloud.com>",
"keywords": "pci, system information, pciutils, python, lspci, hardware information, fetching, pcie",
"author": "Xiao Ran",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/6d/b4/ae2a536acffe08e0d2548e8e9ab5690ca80e5bd965fdc72990b6d88d3048/pypci_ng-0.2.6.tar.gz",
"platform": null,
"description": "# pypci-ng\n[](https://pepy.tech/project/pypci-ng)\n\n\n\n\n\n\n\npypci-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.\n\n\n\n\n\n\n\n## Install\nJust install it directly by pip.\n```shell\npip install pypci-ng\n```\nTo upgrade pypci:\n```shell\npip install pypci-ng --upgrade\n```\n\n## Usage\n### Use as a command line tool\nYou can use this tool directly from the command line with the following command, just like lspci.\n```shell\npypci\n```\nOr use -d flag to print driver information.\n```shell\npypci -d\n```\nFor more command line flags, see:\n```shell\npypci -h\n```\nPlease 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__.\n\n### Use as a Python Package\nYou can also use this package in Python, here is the demo:\n```python\nimport pypci\npci = pypci.PCI()\nvga_devices = pci.FindAllVGA()\nnic_devices = pci.FindAllNIC()\n```\nMore functionalities are under development.\n\n## Supported (Tested) OS\n* Linux\n* Windows 10 and above\n\n\n## Build from source\n### Build tools\nMake sure the following Python build tools are already installed.\n* setuptools\n* build\n* twine\n\n### Build package\nclone the project, and run:\n```shell\npython -m build\n```\nAfter the build process, the source package and the binary whl package can be found in the dist folder.\n",
"bugtrack_url": null,
"license": null,
"summary": "pypci, a pciutils-like library for fetching system PCI/PCI-E information but written mostly in python.",
"version": "0.2.6",
"project_urls": {
"homepage": "https://github.com/xiaoran007/pypci"
},
"split_keywords": [
"pci",
" system information",
" pciutils",
" python",
" lspci",
" hardware information",
" fetching",
" pcie"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "af26ca0f10830a05ece28f6d2b058cd28dfdae6fdfa92dd3fdad80221bd0856e",
"md5": "89a80118d0fc5df7fe44e7d2cf752c71",
"sha256": "3d30f6e9d04bffdf632ff6a83fce2021fc3bd1c119e5e51ae3975409ba9041fb"
},
"downloads": -1,
"filename": "pypci_ng-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "89a80118d0fc5df7fe44e7d2cf752c71",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 1058366,
"upload_time": "2025-07-17T04:37:55",
"upload_time_iso_8601": "2025-07-17T04:37:55.162219Z",
"url": "https://files.pythonhosted.org/packages/af/26/ca0f10830a05ece28f6d2b058cd28dfdae6fdfa92dd3fdad80221bd0856e/pypci_ng-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6db4ae2a536acffe08e0d2548e8e9ab5690ca80e5bd965fdc72990b6d88d3048",
"md5": "a58f7674d18eb85a7f165106c2371eb5",
"sha256": "30768b49155c4433a300e1bedeffbd4af4e0ab5052a7ea925efd6df7d6e3c51c"
},
"downloads": -1,
"filename": "pypci_ng-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "a58f7674d18eb85a7f165106c2371eb5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 1025156,
"upload_time": "2025-07-17T04:37:57",
"upload_time_iso_8601": "2025-07-17T04:37:57.170102Z",
"url": "https://files.pythonhosted.org/packages/6d/b4/ae2a536acffe08e0d2548e8e9ab5690ca80e5bd965fdc72990b6d88d3048/pypci_ng-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 04:37:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xiaoran007",
"github_project": "pypci",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pypci-ng"
}