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-1.10.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file punt-1.10.0.tar.gz.

File metadata

  • Download URL: punt-1.10.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for punt-1.10.0.tar.gz
Algorithm Hash digest
SHA256 115848437ad90bbead1e92cb0d4afe9e467eca1f29bcd3239a17e06bffedbf4f
MD5 ced7797dd0e250c5168d221f900f4ee8
BLAKE2b-256 d480b128a4c2e6ce106cf86ed08aba2d86fdcee1a4f0bcf407502175439bd1c6

See more details on using hashes here.

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