Skip to content

FelixCTH/Watch_and_Shoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”„ Watch & Trigger: Python Directory Monitor

A robust Python utility that monitors a directory for new or modified files and automatically triggers a specified Python script. Ideal for data pipelines, batch processors, or automated workflows.


βœ… Features

  • πŸ•΅οΈβ€β™‚οΈ Monitors a folder for file additions or modifications
  • ⚑ Optional immediate execution at script startup
  • πŸ•’ Configurable polling interval (default: 10 seconds)
  • πŸ”’ Uses file timestamps for accurate change detection
  • 🐍 Lightweight: no third-party dependencies

πŸ›  Requirements

  • Python 3.6+
  • Works on Linux, macOS, and Windows

πŸš€ Usage

Basic command:

python WaS.py <watched_dir> <trigger_script> [--interval SECONDS] [--trigger-on-startup]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages