lsports


Namelsports JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryList serial ports.
upload_time2022-12-31 17:05:40
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords com usb list-ports lsports serial
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # lsports

A simple Python 3.7+ module to list serial ports on Windows, Linux, and macOS.

This is a modified version of `serial.tools.list_ports` from
[pySerial](https://github.com/pyserial/pyserial) by Chris Liechti.

## Installation

```bash
pip install lsports
```

## Usage

The module provides a single function `comports` that returns a list of `PortInfo` objects.
Each `PortInfo` object contains information about a connected serial port.
```python
from lsports import comports

for port in comports():
    print(port.device, port.product, port.hwid)
```
For a full list of available attributes, see the `PortInfo` class. Only `comports` and `PortInfo`
are considered public API.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "lsports",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "COM,USB,list-ports,lsports,serial",
    "author": "",
    "author_email": "Ali Hamdan <ali.hamdan.dev@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/85/5e/8a803f45ca3e87b7d1e52915cb1fc84798b821430d0c09acd639e3e62166/lsports-0.1.0.tar.gz",
    "platform": null,
    "description": "# lsports\n\nA simple Python 3.7+ module to list serial ports on Windows, Linux, and macOS.\n\nThis is a modified version of `serial.tools.list_ports` from\n[pySerial](https://github.com/pyserial/pyserial) by Chris Liechti.\n\n## Installation\n\n```bash\npip install lsports\n```\n\n## Usage\n\nThe module provides a single function `comports` that returns a list of `PortInfo` objects.\nEach `PortInfo` object contains information about a connected serial port.\n```python\nfrom lsports import comports\n\nfor port in comports():\n    print(port.device, port.product, port.hwid)\n```\nFor a full list of available attributes, see the `PortInfo` class. Only `comports` and `PortInfo`\nare considered public API.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "List serial ports.",
    "version": "0.1.0",
    "split_keywords": [
        "com",
        "usb",
        "list-ports",
        "lsports",
        "serial"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9982d35256e102d5c8294b984c56ec6a",
                "sha256": "53a981c6d2d3e4d8a72e02af43f71576583d20f0160ef6df5d5358b4e23753f3"
            },
            "downloads": -1,
            "filename": "lsports-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9982d35256e102d5c8294b984c56ec6a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 17076,
            "upload_time": "2022-12-31T17:05:38",
            "upload_time_iso_8601": "2022-12-31T17:05:38.472195Z",
            "url": "https://files.pythonhosted.org/packages/57/85/f52e09ea23fd965acf5f21ab36a03ae6dbb041c46d566d88407bcd5120e3/lsports-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "d3d1f330764f7b605885dcf50c0df9b6",
                "sha256": "79d64358e07844a0a844d51ebe7495c954171041d562a312950c12310a20aa09"
            },
            "downloads": -1,
            "filename": "lsports-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d3d1f330764f7b605885dcf50c0df9b6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 13649,
            "upload_time": "2022-12-31T17:05:40",
            "upload_time_iso_8601": "2022-12-31T17:05:40.201961Z",
            "url": "https://files.pythonhosted.org/packages/85/5e/8a803f45ca3e87b7d1e52915cb1fc84798b821430d0c09acd639e3e62166/lsports-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-31 17:05:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "lsports"
}
        
Elapsed time: 0.02735s