Skip to main content

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.

Metadata

Release files for serial-port-change 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serial-port-change 1.0.6
File Size Uploaded
serial_port_change-1.0.6.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serial-port-change 1.0.6
File Interpreter ABI Platform
serial_port_change-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / serial_port_change-1.0.6.tar.gz

Download URL serial_port_change-1.0.6.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c3e1895d74ae04b79c5ca37d88b42a93bb67573bd0f4b7b7886e7628f4d4b31a
BLAKE2b-256 checksum
How to use checksums
7e559f1c490bb761a7e5941f086b6f2bbd3f8d9cba222495de7e8116874e9e89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / serial_port_change-1.0.6-py3-none-any.whl

Download URL serial_port_change-1.0.6-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30381f1159dcd5baa0df341128236c6168a8b12444eba681914fe50a9583b684
BLAKE2b-256 checksum
How to use checksums
1a49a0bc6106d3ea5a8eb59deacbc57a8f0b7ce378e884370a3c1fd7e6c9417f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page