Skip to main content

run-on-save

Automatically runs a Python file whenever it's saved. Useful for quick feedback loops during development.

Installation

uv tool install run-on-save

Usage

Run from your project directory:

run-on-save

Whenever you save a .py file, it will be executed automatically in the terminal.

Features

  • 🔍 Watches the entire project directory recursively
  • ⚡ Cooldown period to avoid duplicate runs on rapid saves
  • 🧹 Clears the terminal before each run
  • 🚫 Ignores common non-source directories (.venv, __pycache__, .git, node_modules, etc.)
  • 🔢 Runs files in unbuffered mode (-u) so output appears immediately

Configuration

Edit the constants at the top of the source to adjust behaviour:

Constant Default Description
CLEAR_EACH_RUN True Clear terminal before each run
COOLDOWN_SECONDS 0.4 Minimum seconds between runs of the same file

Ignored Directories

The following directories are ignored by default:

.git, .venv, venv, env, __pycache__, .mypy_cache, .pytest_cache, node_modules, dist, build, .tox, .nox, .idea, .vscode, .zed, and more.

Requirements

License

MIT

Metadata

Release files for run-on-save 0.1.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 run-on-save 0.1.0
File Size Uploaded Provenance
run_on_save-0.1.0.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for run-on-save 0.1.0
File Interpreter ABI Platform
run_on_save-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / run_on_save-0.1.0.tar.gz

Download URL run_on_save-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c9ac4723bd930dd17f093502f31107f66dd91df6265f1814f5cd43de78ae62e
BLAKE2b-256 checksum
How to use checksums
bab1865f9600e0c03050ab35612bf13e88d88b1ec33377cceb909c48855d712b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / run_on_save-0.1.0-py3-none-any.whl

Download URL run_on_save-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c828d485896a59f19d3cc028cdfcffa30e452d796171748aafe6760fb033b657
BLAKE2b-256 checksum
How to use checksums
be31de977fdef2e8d8b7d8638d7727a4be304fa58086ad5fafcac076f77dc10a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for run-on-save 0.1.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.1.0 This release

2 release files 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