Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lsports-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lsports-0.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

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

Hashes for lsports-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79d64358e07844a0a844d51ebe7495c954171041d562a312950c12310a20aa09
MD5 d3d1f330764f7b605885dcf50c0df9b6
BLAKE2b-256 855e8a803f45ca3e87b7d1e52915cb1fc84798b821430d0c09acd639e3e62166

See more details on using hashes here.

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

Hashes for lsports-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53a981c6d2d3e4d8a72e02af43f71576583d20f0160ef6df5d5358b4e23753f3
MD5 9982d35256e102d5c8294b984c56ec6a
BLAKE2b-256 5785f52e09ea23fd965acf5f21ab36a03ae6dbb041c46d566d88407bcd5120e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page