Skip to content

A beautifully simple, fresh file change monitoring tool. Monitor file changes in real time with ease using Mojito🍹!

License

Notifications You must be signed in to change notification settings

cockasian22/mojito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍹 mojito

A beautifully simple, zero dependency, fresh file change monitoring tool. Monitor file changes in real time with ease using Mojito🍹!

Features 🌿

  • Pixel-perfect alignment of before/after columns
  • Color-coded changes (green/+ adds, red/- removes, yellow/~ changes)
  • Per-change timestamps (optional)
  • Zero dependencies (pure Python stdlib)
  • Cross-platform (Windows/macOS/Linux)

Installation

From PyPI

pip install mojito-watcher

From Source

git clone https://github.com/yourusername/mojito.git
cd mojito
pip install -e .

Usage

mojito path/to/file.txt [interval] [options]

Options

Flag Description Default
--no-color Disable colored output Enabled
--no-timestamps Hide change timestamps Enabled
[interval] Polling interval in seconds 1.0

Log to file

Just use the standart stdout to file

mojito path/to/file.txt > mojito.log

Examples

# Basic usage
mojito config.yml

# Fast polling (0.5s) without colors
mojito script.py 0.5 --no-color

# Monitor JSON changes with timestamps
mojito data.json --no-timestamps

Output Format

BEFORE                          β”‚ AFTER
────────────────────────────────┼────────────────────────────────
unchanged_line                  β”‚ unchanged_line
[14:30:45] old_value           ~> new_value
[14:30:46] deleted_line         - 
[14:30:47]                      + added_line

About

A beautifully simple, fresh file change monitoring tool. Monitor file changes in real time with ease using Mojito🍹!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages