# 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.


## 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/fb/cc/aa00a618749bfd4f0d68a43a07bf631bac1f99c341af1a4a68d456f558db/pypci_ng-0.1.5.tar.gz",
"platform": null,
"description": "# pypci-ng\n[](https://pepy.tech/project/pypci-ng)\n\n\n\n\n\n\npypci-ng, a pciutils-like library for fetching system PCI/PCI-E devices but written mostly in python.\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": "BSD-3-Clause",
"summary": "pypci, a pciutils-like library for fetching system PCI/PCI-E information but written mostly in python.",
"version": "0.1.5",
"project_urls": {
"homepage": "https://github.com/xiaoran007/pypci"
},
"split_keywords": [
"pci",
" system information",
" pciutils",
" python",
" lspci",
" hardware information",
" fetching",
" pcie"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "71b2b08612679d393dd44616215ae1ff6226b0a811c63c5746dd2b1a5ac0a261",
"md5": "24103a00fcb65065e70a8466d8c35858",
"sha256": "02ae30765690db98039793af1f9a8d41483a3f5c7c8e0da8b43f7490c7029a2b"
},
"downloads": -1,
"filename": "pypci_ng-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24103a00fcb65065e70a8466d8c35858",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 1038517,
"upload_time": "2025-02-13T15:05:22",
"upload_time_iso_8601": "2025-02-13T15:05:22.550800Z",
"url": "https://files.pythonhosted.org/packages/71/b2/b08612679d393dd44616215ae1ff6226b0a811c63c5746dd2b1a5ac0a261/pypci_ng-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fbccaa00a618749bfd4f0d68a43a07bf631bac1f99c341af1a4a68d456f558db",
"md5": "7bb7dce30a5e4a0cff03d1c4ceca1cdd",
"sha256": "57fcfbbe06fd253821dd9cb97e6c83e7bb2ec28d3f1d09a1140be0f94d7d483c"
},
"downloads": -1,
"filename": "pypci_ng-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "7bb7dce30a5e4a0cff03d1c4ceca1cdd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 1005518,
"upload_time": "2025-02-13T15:05:24",
"upload_time_iso_8601": "2025-02-13T15:05:24.253786Z",
"url": "https://files.pythonhosted.org/packages/fb/cc/aa00a618749bfd4f0d68a43a07bf631bac1f99c341af1a4a68d456f558db/pypci_ng-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-13 15:05:24",
"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"
}