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 | |
|---|---|---|---|
| lsports-0.1.0.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lsports-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|