Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pywatch

How to install pywatch

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pywatch
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4 Available View build log
Windows (64-bit)
0.4 Available View build log
Mac OS X (10.5+)
0.4 Available View build log
Linux (32-bit)
0.4 Available View build log
Linux (64-bit)
0.4 Available View build log
 
Author
License
MIT
Dependencies
Imports
Lastest release
version 0.4 on Jan 5th, 2011

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 ...

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

Changelog

0.4
  • Directories are now walked recursively and all files are added and watched
0.3.2
  • Added --version
0.3.1
  • Changed setup.py to include proper url
  • Added error catching for os.stat calls
  • pywatch with no args displays usage
0.3
  • Added pywatch command line client
0.2
  • Fixed missing os import in setup.py
0.1
  • Initial release of python module

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.