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 by Chris Liechti.
Installation
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.
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.
Metadata
Release files for lsports 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lsports-0.1.0.tar.gz | 13.6 kB | Without provenance | Details for lsports-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lsports-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lsports-0.1.0-py3-none-any.whl |
Total release size: 30.7 kB
Release files / lsports-0.1.0.tar.gz
| Download URL | lsports-0.1.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79d64358e07844a0a844d51ebe7495c954171041d562a312950c12310a20aa09
|
|
BLAKE2b-256 checksum How to use checksums |
855e8a803f45ca3e87b7d1e52915cb1fc84798b821430d0c09acd639e3e62166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / lsports-0.1.0-py3-none-any.whl
| Download URL | lsports-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53a981c6d2d3e4d8a72e02af43f71576583d20f0160ef6df5d5358b4e23753f3
|
|
BLAKE2b-256 checksum How to use checksums |
5785f52e09ea23fd965acf5f21ab36a03ae6dbb041c46d566d88407bcd5120e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for lsports 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.