Skip to main content

Monitor the serial ports in Windows and detect and display changes

Project description

Serial Port Change

Introduction

We've all been there; you have a bunch of USB-serial adapters and you have to figure out which serial port it is. Traditionally, I've done this by opening Device Manager, try to remember all the ports connected, unplug the device, and look for changes. There has to be a better way, so Serial Port Change to the rescue!

What it Does

This utility is simplicity itself. It is a command line tool that extracts a set of serial ports, then periodically looks for changes. If a port is added, it will return:

New serial port detected: COM12

If a port is removed, it will return:

Serial port removed: COM12

This process will end when the user types CTRL-C.

How to Run

There are a few ways to run the project. You can install it with Pip:

$ pip install serial-port-change

Then run it with the script (assuming the Python scripts path is in your global path)

$ serial_port_change

If you have Astral uv installed, you can also run it (without directly installing it) using uvx like:

uvx serial_port_change

Modifying

The project is built using the uv package manager, although it could be easily recasted to Poetry or some other package manager. There are also files to set up the project using PyCharm, although this isn't required.

It is also setup to use bump2version to control the version number. For instance, if the current revision is 1.2.3, you can execute

$ uvx bump2version minor

To upgrade to version 1.3.0. You can also vary the major and patch revision levels. Refer to the bump2version documentation for more information.

Questions

If anyone has any questions, contact me at dbwalker0min@gmail.com.

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

serial_port_change-1.0.4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

serial_port_change-1.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file serial_port_change-1.0.4.tar.gz.

File metadata

  • Download URL: serial_port_change-1.0.4.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for serial_port_change-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5886aa0960c737bb9278f8ee9168ad3d1a66e848b3a2822a015f9f30053a0992
MD5 3b3df56da3b20145e083a28a7a444ca9
BLAKE2b-256 e59b36617da538202f6d08236152fb4ca3e869d03c76a06bca510160182b7110

See more details on using hashes here.

File details

Details for the file serial_port_change-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for serial_port_change-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cf8ca45334c8d464dd2f3443797850bf67fdac3c9b907d1d9958150dac5ff3
MD5 a73de121f2f879f8776177e9b023f328
BLAKE2b-256 580ec72ff72c0ee403ea4a3c87b41fc9a1a466b74945db303a05cbc4f31a4a86

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