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/ -w lib/ py.test # run py.test when any file in tests/ or lib/ changes $ punt -w info.yml py.test # run py.test when info.yml changes $ punt -l make # only monitor "local" files (don't observe subdirectories) $ punt --info -w src make # show info like command status $ 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
Release history Release notifications | RSS feed
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.13.0.tar.gz
(4.9 kB
view details)
Built Distribution
punt-1.13.0-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file punt-1.13.0.tar.gz
.
File metadata
- Download URL: punt-1.13.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2115fa0c1b9adafe2c9aa862c5c54138308b735b0ba6f4e785b4f7d6c57bb798 |
|
MD5 | 21c4d85b3d76027277a0ee3ee7fb223e |
|
BLAKE2b-256 | 7679a6c984834ae97acc5ae4817b8101735faa089a6a4ac0c29838c432baeafc |
File details
Details for the file punt-1.13.0-py3-none-any.whl
.
File metadata
- Download URL: punt-1.13.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429f137eb1b28a1cdddb111fe52313b943d16209e401d9356fbe412f716bddfc |
|
MD5 | e943860914aa9110588b67cc3a0ba32c |
|
BLAKE2b-256 | 16b8146afeefa7457c9c444870b84cb7e8bbb523e2976dc15ffb08d8bfc8a1dd |