serial-tui
A TUI serial monitor built with Python and Textual.
Features
- Serial port connection management (baud, data bits, parity, stop bits)
- Live RX display with timestamps, toggle between ASCII and HEX modes
- TX input with escape sequence support (
\n,\r,\t,\xHH) - Transmit history with up/down arrow navigation (mode-preserving)
- ? help screen, Ctrl+L clear RX display
- Ctrl+O port configuration screen
- Pattern matching engine with greedy backtracking wildcards (
*,+) - Checksum verification (LRC, MOD256, CRC-8/16/32) integrated into matching
Quick Start
pip install -e .
serial-tui
Or without installing:
python src/serial_tui/cli.py
Keybindings
| Key | Action |
|---|---|
| Ctrl+O | Configure serial port |
| Ctrl+K | Disconnect |
| Ctrl+D | Toggle HEX/ASCII display |
| Ctrl+L | Clear RX display |
| Ctrl+E | Toggle TX echo |
| Ctrl+Y | Copy RX log |
| ? | Help |
| F3 | Sequence editor |
| F4 | Trigger editor |
| F5 | Overview |
| Up/Down | Cycle transmit history |
Project Layout
src/serial_tui/
├── cli.py — Main app & entry point
├── checksum.py — LRC, MOD256, CRC-8/16/32
├── data_model.py — FieldDefinition, SequenceDefinition, JSON
├── matcher.py — Pattern matching engine
├── serial_manager.py — pyserial wrapper
├── session.py — Session persistence
├── screens/
│ ├── help_screen.py — Keyboard shortcuts reference
│ ├── history_screen.py — Transmit history modal
│ ├── overview_screen.py — Combined sequences + triggers
│ ├── port_screen.py — Port config modal
│ ├── sequence_screen.py — Sequence editor
│ └── trigger_screen.py — Trigger editor
└── widgets/
└── rx_pane.py — Scrollable RX display
Development
pip install -e ".[dev]"
pre-commit install
pytest tests/ -v
Metadata
Release files for serial-tui 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serial_tui-1.1.0.tar.gz | 35.6 kB | Without provenance | Details for serial_tui-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serial_tui-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for serial_tui-1.1.0-py3-none-any.whl |
Total release size: 62.0 kB
Release files / serial_tui-1.1.0.tar.gz
| Download URL | serial_tui-1.1.0.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58ae2bef038732b437b9f20bf4116a866dd297c90d1ca19f75fb5caa7c145c12
|
|
BLAKE2b-256 checksum How to use checksums |
e924da4f28b61cd926a162b3c5b947d6e086b20393f953d55b9c2087f76b3d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / serial_tui-1.1.0-py3-none-any.whl
| Download URL | serial_tui-1.1.0-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4380315f13e1fd4edebb8d3551120370cc3dd17725130551e21199248eeed23
|
|
BLAKE2b-256 checksum How to use checksums |
8908cb30ffd0b4906ce16282ed44d2cffa1e2f4a183eacee100905fa2b7ba435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for serial-tui 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.