Skip to main content

when-changed

Run a command when a file is changed

~ What is it?

Tired of switching to the shell to test the changes you just made to your code? Starting to feel like a mindless drone, manually running pdflatex for the 30th time to see how your resume now looks?

Worry not, when-changed is here to help! Whenever it sees that you have changed the file, when-changed runs any command you specify.

So to generate your latex resume automatically, you can do this:

$ when-changed CV.tex pdflatex CV.tex

Sweetness!

~ What do I need?

Python 2.6+ watchdog

~ Installation

pip install https://github.com/joh/when-changed/archive/master.zip

~ Usage

when-changed FILE COMMAND… when-changed FILE [FILE …] -c COMMAND

Metadata

Release files for when-changed 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for when-changed 0.3.0
File Size Uploaded Provenance Actions
when-changed-0.3.0.tar.gz 2.9 kB Without provenance Details for when-changed-0.3.0.tar.gz

Release files / when-changed-0.3.0.tar.gz

Download URL when-changed-0.3.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1f0b90c5f725223aab77290b4ce5cd79672702a1f3fbe620bdef440c106418e2
BLAKE2b-256 checksum
How to use checksums
833380d220730dddda0cc99eac3c76409d9d8a60a799d0e0fcc6e010c14c2834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for when-changed 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page