Skip to main content

Runs arbitrary commands if files specified to be watched change.

Project description

A python clone (almost) of the Linux watch command.

The pywatch.watcher.Watcher class can be told to watch a set of files, and given a set of commands to run whenever any of those files change.

It was inspired by Ruby’s ZenTest, but while it can be used for testing, pywatch is intended to run any command when files change… test runners or otherwise.

See pywatch.autotest for an example of a continously running watch-and-runner.

pywatch usage

Usage: pywatch [options] “command” file1 file2 …

-h, --help show this help message and exit
-v, --verbose Output timestamp when commands are run.
--version Output version number and exit



  • Directories are now walked recursively and all files are added and watched


  • Added –version


  • Changed to include proper url
  • Added error catching for os.stat calls
  • pywatch with no args displays usage


  • Added pywatch command line client


  • Fixed missing os import in


  • Initial release of python module

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pywatch, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size pywatch-0.4.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page