liverun
A simple CLI tool to run commands on file changes.
Installation
pip install liverun
Usage
usage: liverun [-h] -f FILES [FILES ...] (-c COMMAND | -x EXEC_ARGV [EXEC_ARGV ...]) [-p POLL_INTERVAL] [--no-initial-run] [-v]
A simple CLI tool to run commands on file changes.
options:
-h, --help show this help message and exit
-f FILES [FILES ...], --files FILES [FILES ...]
One or more file paths to watch for changes.
-c COMMAND, --command COMMAND
Shell command to execute when a change is detected (runs in the platform shell).
-x EXEC_ARGV [EXEC_ARGV ...], --exec EXEC_ARGV [EXEC_ARGV ...]
Execute the given program/args directly (no shell). Example: --exec python -m pytest -q
-p POLL_INTERVAL, --poll-interval POLL_INTERVAL
Polling interval in seconds (default: 1.0).
--no-initial-run Do not run the action immediately at startup (default is to run once).
-v, --verbose Enable info-level logging output.
Example
liverun -f deck.json deck.csv -c "decksmith build" -p 1.0 -v
Run the decksmith build shell command whenever any of the two files changes, check every second, be verbose.
Metadata
Release files for liverun 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| liverun-0.1.1.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| liverun-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / liverun-0.1.1.tar.gz
| Download URL | liverun-0.1.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66a1d786e5c9d38cfcb708124721d8126107295a29a151066fd8121159a3066e
|
|
BLAKE2b-256 checksum How to use checksums |
2fe0fb983d74e195234096015b064c24a135e4757e85a250f2630e75d90849ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Release files / liverun-0.1.1-py3-none-any.whl
| Download URL | liverun-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e98c7a3dc1b44fcbec358bfa6d26129dcddca111d36968d73287fe23a3f35e6
|
|
BLAKE2b-256 checksum How to use checksums |
3f6e7a943189fbea68a87feb865bfbd1bfe92aeafb6f70a5ff44531ee0536a68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|