kentraWATCH
A beautiful TUI replacement for watch with live graphs, stats dashboards, and structured output parsing.
Features
- Live command execution — run any command at a configurable interval (0.5s–60s)
- Output view — colored diff with fade-away change highlighting, word wrap toggle, horizontal scroll
- Graph view — auto-detected numeric columns plotted as line charts over time
- Stats view — timing, history, uptime, and exit code dashboard
- Structured output parsing — auto-detects delimiters (comma, tab, pipe, semicolon, whitespace) and numeric columns with unit suffix parsing (K, M, G, T, P)
- Settings modal — categorized two-pane settings screen for all options
- Config persistence —
~/.kentrawatch/config.jsonauto-saves on every change - Themes — toggle between 21+ Textual themes
- Pause/resume — freeze execution without losing history
- Maximize mode — hide chrome for a focused view (
m) - File logging —
~/.kentrawatch/kentrawatch.logwith rotation
Installation
pip install kentrawatch
Or from source:
git clone https://github.com/yourusername/kentrawatch
cd kentrawatch
pip install -e .
Requires Python ≥3.12.
Usage
kentrawatch [options] <command>
kw [options] <command>
Examples
# Watch disk usage
kentrawatch "df -h"
# Watch with custom interval and CSV parsing
kentrawatch -n 5 -d , "ps aux | awk '{print \$3,\$4}'"
# Disable change highlighting
kentrawatch --no-highlight "vm_stat"
# Set log level
kentrawatch --log-level DEBUG "ping -c 1 8.8.8.8"
Options
| Flag | Default | Description |
|---|---|---|
-n, --interval |
2.0 |
Update interval in seconds (min 0.5) |
-d, --delimiter |
auto | Column delimiter for structured output |
--history |
100 |
Number of runs to keep in history |
--log-level |
INFO |
Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
--version |
— | Show version and exit |
--highlight / --no-highlight |
on | Enable/disable change highlighting |
Keybindings
| Key | Action |
|---|---|
q |
Quit |
r |
Reset history |
p |
Pause/resume |
w |
Toggle word wrap |
s |
Open settings modal |
m |
Toggle maximize mode |
+ / - |
Increase/decrease interval by 0.5s |
Views
The interface has three tabs, navigable by clicking:
| Tab | Content |
|---|---|
| Output | Command stdout with diff highlighting and fade animation |
| Graphs | Live line charts for numeric columns across runs |
| Stats | Timing, command, history, and exit code dashboard |
Settings Modal
Press s to open the categorized settings modal:
| Category | Settings |
|---|---|
| Display | Theme (21+ Textual themes), Highlight toggle, Word Wrap toggle |
| Execution | Interval, Delimiter, History Size |
| Logging | Log Level (DEBUG–CRITICAL) |
All changes apply immediately and persist to ~/.kentrawatch/config.json.
Configuration
Settings are saved to ~/.kentrawatch/config.json:
{
"interval": 2.0,
"delimiter": null,
"history_size": 100,
"theme": "dracula",
"highlight": true,
"wrap": true,
"log_level": "INFO"
}
CLI flags override config file values.
Logging
Logs are written to ~/.kentrawatch/kentrawatch.log with automatic rotation at 10 MB (3 backups retained).
Dependencies
- Textual — TUI framework
- textual-plotext — terminal plotting
- Rich — styled output
- typed-argument-parser — CLI args
- Loguru — logging
Metadata
Release files for kentrawatch 0.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 |
|---|---|---|---|---|
| kentrawatch-0.1.0.tar.gz | 15.7 kB | Without provenance | Details for kentrawatch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kentrawatch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kentrawatch-0.1.0-py3-none-any.whl |
Total release size: 33.5 kB
Release files / kentrawatch-0.1.0.tar.gz
| Download URL | kentrawatch-0.1.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
751446c8ef49d5e90ada79710aaebde2afd7e3f444e1b939dc7f509d34028912
|
|
BLAKE2b-256 checksum How to use checksums |
212833926502998caa26ef3aa1b1722b25d1a28f53bcf626c823199c0357fb6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / kentrawatch-0.1.0-py3-none-any.whl
| Download URL | kentrawatch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2529c8ceee56d1f9a23b77aae7a8f7d89ae87e558a84f562b5a4f93a4d294669
|
|
BLAKE2b-256 checksum How to use checksums |
61205e827db47531db54f7f932a4c6daa895d752d99d83ba175fc3d6638c7051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for kentrawatch 0.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.