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
$ uv tool 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.14.1.tar.gz
(5.0 kB
view details)
Built Distribution
punt-1.14.1-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file punt-1.14.1.tar.gz
.
File metadata
- Download URL: punt-1.14.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
18cc6eafcc70373c4e310700b1aff5b2c245ef35104597b50bd6191cf8e0ae8f
|
|
MD5 |
85c6bd09d532a114e20797eea1a4d42c
|
|
BLAKE2b-256 |
70ae6607874ba6f8636cd1472a24f808ce2e547d1b2d633bdb5daa936333e672
|
File details
Details for the file punt-1.14.1-py3-none-any.whl
.
File metadata
- Download URL: punt-1.14.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bfcda3e74aaaed09c82fcd85350884ebb59a54ffe74643d9621c451d9adb7460
|
|
MD5 |
337261bdd09a4ed56d8b8d3292044f9f
|
|
BLAKE2b-256 |
f56286ad53deadd89bce48a8b1e18b7001d80e4f72e1e5c3d48188f22e72afcb
|