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.6.tar.gz (22.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.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: serial_port_change-1.0.6.tar.gz
  • Upload date:
  • Size: 22.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.6.tar.gz
Algorithm Hash digest
SHA256 c3e1895d74ae04b79c5ca37d88b42a93bb67573bd0f4b7b7886e7628f4d4b31a
MD5 f149cbb73d1f977917b659de67e52d5a
BLAKE2b-256 7e559f1c490bb761a7e5941f086b6f2bbd3f8d9cba222495de7e8116874e9e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for serial_port_change-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 30381f1159dcd5baa0df341128236c6168a8b12444eba681914fe50a9583b684
MD5 3a4da25d92507bf521905bd13cba524a
BLAKE2b-256 1a49a0bc6106d3ea5a8eb59deacbc57a8f0b7ce378e884370a3c1fd7e6c9417f

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