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.5.tar.gz (22.1 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.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: serial_port_change-1.0.5.tar.gz
  • Upload date:
  • Size: 22.1 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.5.tar.gz
Algorithm Hash digest
SHA256 6d532ebc0358530fed2fe541bcae1b280b8901af94e4e7fcedd369336e90f2ed
MD5 231c6c54cc63e1a0c315506a80850c07
BLAKE2b-256 b9b63c94ebf0d6b717caafaf442f17ca7dd2fd6583e0b355a78ffe2217d2c58f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for serial_port_change-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2b17d6544237bc6852c2c06378b207e4b2cdc7291c4de8f83fc1b120fdec2544
MD5 b5ef730584ddf55f691a8bfe40b35a45
BLAKE2b-256 65f6ac798e70cfae87b6fdf466c52eee6920455c441942ba72ffc2578a4eebcc

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