Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Usage

rerun [options] <command>

where ‘options’ may include:

--verbose|-v        List changed files before <command> output
--ignore|-i <D>     Directory or filename to ignore. Changes to this file
                    do not trigger another execution of <command>.

e.g:

rerun python -m unittest mypackage.mymodule

will rerun your tests every time you save your source code. Handy for seeing the new test results in a console window after you hit ‘save’ in your editor, without having to change window focus.

It detects changes to files by polling file modification times once per second. On detecting any changes, it clears the terminal and reruns the given command.

Polling for modification times perhaps isn’t ideal. Registering of OS-specific notifications of file system events might be better. In practice though, I haven’t noticed it burden my machine, even in project directories containing hundreds of files.

It ignores directories called .svn, .git, .hg, .bzr, build and dist. It ignores files ending with .pyc or .pyo.

Dependencies

Tested on WindowsXP, Windows 7, MacOSX, and Ubuntu.

Runs under Python2.7 or 3.2.

No other dependencies.

Install

pip install rerun

Thanks

The idea came from the Bash command ‘watch’, and inspiration for this implementation came from an old blog post by Jeff Winkler, whos website http://jeffwinkler.net seems to have now died.

Contact

Jonathan Hartley, tartley@tartley.com

Metadata

Release files for rerun 1.0.3-beta

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

Source distributions (sdists)

Source distribution for rerun 1.0.3-beta
File Size Uploaded Provenance Actions
rerun-1.0.3-beta.zip 8.6 kB Without provenance Details for rerun-1.0.3-beta.zip
rerun-1.0.3-beta.tar.gz 4.8 kB Without provenance Details for rerun-1.0.3-beta.tar.gz

Release files / rerun-1.0.3-beta.zip

Download URL rerun-1.0.3-beta.zip
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2bbf88eeefd19d8e4f1a18e31d4c3ce4bcb63b3d2e0ad2d268019cc9ff348565
BLAKE2b-256 checksum
How to use checksums
ba6926c13d33002f5ba883e29625a24fb014d196ba9f95e21d81d66f8b92d3a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rerun-1.0.3-beta.tar.gz

Download URL rerun-1.0.3-beta.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
055baed3c2b3c5716e3966000b5525bde7e01d33bb618e3c58de8b9c185d2fca
BLAKE2b-256 checksum
How to use checksums
d534cfc9e0a6f9d317bd433f2958e49a9f2f63cd97838063b1ac7222634beaa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rerun 1.0.3-beta

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

1.0.18

1.0.11beta

This release
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