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🍹!

Mojito Demo
(Example output - colors may vary in your terminal)

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-0.1.0.tar.gz (4.1 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-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mojito_watcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7fde6b425acdcd190ab0917610698abd942cf475e8361e8d75b95ff39896e7a
MD5 11bd8522dd5ad3ae400b2486924543b6
BLAKE2b-256 595bf1b798d261bd4d2125cb8de63c319ea36053e0bdb38b1593be752235d340

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mojito_watcher-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5ae477699711e04fea593facb469a897bc72e18534d13b4550cea5ba4c70032
MD5 39d242b247617651d0f7304e43a598ae
BLAKE2b-256 c8b80894216ef0f7ce73303055b8d21d121aadc92e02561f16320a8fc70d01eb

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