pypci-ng


Namepypci-ng JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summarypypci, a pciutils-like library for fetching system PCI/PCI-E information but written mostly in python.
upload_time2025-10-26 07:12:27
maintainerNone
docs_urlNone
authorXiao Ran
requires_python>=3.9
licenseNone
keywords pci system information pciutils python lspci hardware information fetching pcie
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pypci-ng
[![Downloads](https://static.pepy.tech/badge/pypci-ng)](https://pepy.tech/project/pypci-ng)
![PyPI - Version](https://img.shields.io/pypi/v/pypci-ng?label=version)

![Static Badge](https://img.shields.io/badge/Linux-blue)
![Static Badge](https://img.shields.io/badge/Windows-yellow)
![Static Badge](https://img.shields.io/badge/FreeBSD-red)


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](https://files.catbox.moe/mku1dg.png)


![demo1](https://files.catbox.moe/scnd3j.png)

## 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/f5/a8/6ec9112d3e497f2a9c6e1f2446a4e9e7ef204c39ddd3e76b40046f7f6058/pypci_ng-0.3.0.tar.gz",
    "platform": null,
    "description": "# pypci-ng\n[![Downloads](https://static.pepy.tech/badge/pypci-ng)](https://pepy.tech/project/pypci-ng)\n![PyPI - Version](https://img.shields.io/pypi/v/pypci-ng?label=version)\n\n![Static Badge](https://img.shields.io/badge/Linux-blue)\n![Static Badge](https://img.shields.io/badge/Windows-yellow)\n![Static Badge](https://img.shields.io/badge/FreeBSD-red)\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![demo0](https://files.catbox.moe/mku1dg.png)\n\n\n![demo1](https://files.catbox.moe/scnd3j.png)\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.3.0",
    "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": "8b7eabea8a6f533266b136f0f0367cf6904958fc6d6113b0aa44169d8e43d168",
                "md5": "129e8d3de913c6cd05ac10a0d3000a8c",
                "sha256": "b4a660be314c84dbb654cbe8b3715dbc19c7712c702dcd58c07b07dc71f01ff3"
            },
            "downloads": -1,
            "filename": "pypci_ng-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "129e8d3de913c6cd05ac10a0d3000a8c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1059163,
            "upload_time": "2025-10-26T07:12:22",
            "upload_time_iso_8601": "2025-10-26T07:12:22.791791Z",
            "url": "https://files.pythonhosted.org/packages/8b/7e/abea8a6f533266b136f0f0367cf6904958fc6d6113b0aa44169d8e43d168/pypci_ng-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f5a86ec9112d3e497f2a9c6e1f2446a4e9e7ef204c39ddd3e76b40046f7f6058",
                "md5": "e6a33e681b59ac1e7c089c7b472da8cd",
                "sha256": "36a1ceb3965c1fbcd98a0e3aedec3ac7dc221f81c9aa5094a9408df3d0cd514e"
            },
            "downloads": -1,
            "filename": "pypci_ng-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e6a33e681b59ac1e7c089c7b472da8cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1025813,
            "upload_time": "2025-10-26T07:12:27",
            "upload_time_iso_8601": "2025-10-26T07:12:27.185698Z",
            "url": "https://files.pythonhosted.org/packages/f5/a8/6ec9112d3e497f2a9c6e1f2446a4e9e7ef204c39ddd3e76b40046f7f6058/pypci_ng-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-26 07:12:27",
    "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"
}
        
Elapsed time: 3.11976s