List serial ports.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsports-0.1.0.tar.gz.
File metadata
- Download URL: lsports-0.1.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d64358e07844a0a844d51ebe7495c954171041d562a312950c12310a20aa09
|
|
| MD5 |
d3d1f330764f7b605885dcf50c0df9b6
|
|
| BLAKE2b-256 |
855e8a803f45ca3e87b7d1e52915cb1fc84798b821430d0c09acd639e3e62166
|
File details
Details for the file lsports-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lsports-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53a981c6d2d3e4d8a72e02af43f71576583d20f0160ef6df5d5358b4e23753f3
|
|
| MD5 |
9982d35256e102d5c8294b984c56ec6a
|
|
| BLAKE2b-256 |
5785f52e09ea23fd965acf5f21ab36a03ae6dbb041c46d566d88407bcd5120e3
|