pypci-ng


Namepypci-ng JSON
Version 0.0.2 PyPI version JSON
download
home_pageNone
Summarypypci, a pciutils-like library for fetching system PCI/PCI-E information but written mostly in python.
upload_time2024-09-26 10:02:45
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseBSD-3-Clause
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)


pypci-ng, a pciutils-like library for fetching system PCI/PCI-E devices but written mostly in python.


![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
```
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


## 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": null,
    "keywords": "pci, system information, pciutils, python, lspci, hardware information, fetching, pcie",
    "author": null,
    "author_email": "Xiao Ran <xiaoran.007@icloud.com>",
    "download_url": "https://files.pythonhosted.org/packages/14/9f/3ae94e37cc31321dc362d709c024d4e1e60ea19cdd45b7e2e8a4e04a7559/pypci_ng-0.0.2.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\n\npypci-ng, a pciutils-like library for fetching system PCI/PCI-E devices but written mostly in python.\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```\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\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.0.2",
    "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": "e393297d24465e3bc011919c4482aecbbda63f4d0edc3b44b89b8d1c7445046a",
                "md5": "98f39e248a38c76cc479821c44808d62",
                "sha256": "deacfa7f12cf36451a454e869b855cabcc24c29f138154604b38c1e9cb7e6810"
            },
            "downloads": -1,
            "filename": "pypci_ng-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98f39e248a38c76cc479821c44808d62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1017110,
            "upload_time": "2024-09-26T10:02:42",
            "upload_time_iso_8601": "2024-09-26T10:02:42.574081Z",
            "url": "https://files.pythonhosted.org/packages/e3/93/297d24465e3bc011919c4482aecbbda63f4d0edc3b44b89b8d1c7445046a/pypci_ng-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "149f3ae94e37cc31321dc362d709c024d4e1e60ea19cdd45b7e2e8a4e04a7559",
                "md5": "1791d0bb13758f3a3dee06d2d81010f0",
                "sha256": "1a8852bffcf401fa2232bce383cda00f3e9c5e92993cb84918afd2de16e35128"
            },
            "downloads": -1,
            "filename": "pypci_ng-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1791d0bb13758f3a3dee06d2d81010f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 985543,
            "upload_time": "2024-09-26T10:02:45",
            "upload_time_iso_8601": "2024-09-26T10:02:45.339052Z",
            "url": "https://files.pythonhosted.org/packages/14/9f/3ae94e37cc31321dc362d709c024d4e1e60ea19cdd45b7e2e8a4e04a7559/pypci_ng-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-26 10:02:45",
    "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: 0.38335s