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
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.11.0.tar.gz
(4.8 kB
view details)
Built Distribution
punt-1.11.0-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file punt-1.11.0.tar.gz
.
File metadata
- Download URL: punt-1.11.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe70c57d127f8f1ed7bad2dd83aa70da829982a2d71c608dbec5bc218aeb573 |
|
MD5 | 1c45f141eb7660592d41e6e67f7bf361 |
|
BLAKE2b-256 | 254c7ba81d1a861d5dce45050e54fbc8beaaf4d63f66a5bb7bf7158b04b12993 |
File details
Details for the file punt-1.11.0-py3-none-any.whl
.
File metadata
- Download URL: punt-1.11.0-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 1c6585488bc5320eb1cc67950f609e28381acf389aa387d330169ca10b031b58 |
|
MD5 | 63b7aad84f5be33440f0ce53c00bab23 |
|
BLAKE2b-256 | b253e65f0d00e0984c28879395aa4c1694c3c5af45953305b6d7e8083b17c375 |