botbotbot 's blog

Watchdog

Watchdog

Python API and shell utilities to monitor file system events.

pip install watchdog

Watching python file changes

Watchdog over Docker (VM) via polling - Ref

from watchdog.observers.polling import PollingObserver as Observer
Observer() #polling every 1 second

References:

  1. Event Handler Classes
  2. Watching a directory for file changes
  3. Continuous integration in python using watchdog