Skip to main content

Monitor file changes, and run script on changes.

Project description

I saw kicker the other day and thought: I could write that in a minute!

So I did.

INSTALLATION

$ pip install punt

USAGE

$ punt 'du -sh'  # list file sizes, update the list when a file in cwd changes
$ punt -w tests 'py.test'          # run py.test when any file in tests/ changes
$ punt -w tests -w lib 'py.test'   # run py.test when any file in tests/ or lib/ changes
$ punt -l make                     # only monitor "local" files (don't observe subdirectories)
$ punt --help
$ punt --version

INFO

punt is a tiny tool, just one __init__.py file. It uses watchdog to monitor file changes, and docopt to parse command line arguments.

LICENSE

Author:

Colin Thomas-Arnold

Copyright:

2012 Colin Thomas-Arnold <http://colinta.com/>

Copyright (c) 2012, Colin Thomas-Arnold All rights reserved.

See LICENSE for more details (it’s a simplified BSD license).

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

punt-v1.8.3.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page