Skip to main content

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

Project description

🍹 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

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

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

mojito_watcher-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mojito_watcher-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mojito_watcher-1.0.0.tar.gz.

File metadata

  • Download URL: mojito_watcher-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for mojito_watcher-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2919ee38513da5656ada1a38b0bb05bb5a959819c3d1ffa35520e813458b89f5
MD5 dced929fd2e6d53e9a5df49d78395b5d
BLAKE2b-256 05ac099f6de7930fd5cab0f4c394bd55ffaa4febd22a137a3fa02e011bb4104b

See more details on using hashes here.

File details

Details for the file mojito_watcher-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mojito_watcher-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for mojito_watcher-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c58a17c4f52d21ed7b5daee044fee82cfc46b30710747fb1bdbd43381092a08
MD5 27bf9a521b5bbe5d9f58e797b7fc72e0
BLAKE2b-256 8fc8939aaee3ffc230c742b2670a7ca5b0d7e0a7cb20a0e90ad75e95b7b60f06

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