🚀 auto-auto-live-reload
A lightweight Python utility that watches your project for source changes and automatically restarts the current process.
Perfect for speeding up local development of CLIs, scripts, and small services.
📚 Table of Contents
✨ Features
- 🔍 Watches files matching customizable glob patterns (defaults to
*.py). - 🚫 Optional exclusion patterns keep temporary or generated files out of the watch list.
- 🗂️ Recursive directory walking with the ability to opt out for flat projects.
- ⏱️ Configurable polling interval and initial delay to fit your workload.
- 🗒️ Verbose logging to understand which files triggered a restart.
- 🧵 Runs the watcher on a daemon thread so your application code can proceed normally.
📦 Installation
pip install auto-live-reload
# Version: 1.0.1
Or, for local development:
pip install -e .
⚡ Quick Start
Call start_auto_live_reload() as early as possible in your entry point (version 1.0.1):
from auto_live_reload import start_auto_live_reload
start_auto_live_reload()
def main():
print("Running business logic…")
# ...
if __name__ == "__main__":
main()
Any changes to watched files will restart your script automatically.
⚙️ Configuration
You can customize the behavior using arguments:
start_auto_live_reload(
patterns=["*.py", "*.jinja"],
delay=1,
)
patterns: List of file patterns to watch (default:['*.py']).delay: Initial delay before watching starts (default: 2).
🖥️ Command-line Helper
A thin CLI wrapper is exposed through auto_live_reload.main(). You can wire it into your own console script entry point or invoke it manually during development:
python -c "import auto_live_reload; auto_live_reload.main()" --interval 2 --patterns "*.py" "*.md"
The available flags mirror the keyword arguments listed above:
--patterns,--exclude,--interval,--delay,--no-recursive, and--verbose
The CLI keeps the current process alive, making it ideal for quickly testing live reload behaviour without modifying your application code.
🛠️ Development
- Clone the repository and install dependencies in editable mode:
pip install -e .
- Run your application or sample script with
start_auto_live_reload()enabled. - Make code changes and confirm that the process restarts automatically.
📄 License
This project is licensed under the MIT License.
🙌 Issues and pull requests are welcome!
Metadata
Release files for auto-live-reload 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| auto_live_reload-1.0.2.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_live_reload-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / auto_live_reload-1.0.2.tar.gz
| Download URL | auto_live_reload-1.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
088461e86935ef69fae13a8ab9118003c6bfcb58c1e80bc7a673deda85eea7e8
|
|
BLAKE2b-256 checksum How to use checksums |
7202f23df37bafd6d5a86dbda8b79e77ff9edd3a59cf8144fb5edde932c9dc67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / auto_live_reload-1.0.2-py3-none-any.whl
| Download URL | auto_live_reload-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26d04c62a2f45629f88af72a22485c618e620b0c294ff66a9140559c7effb0fd
|
|
BLAKE2b-256 checksum How to use checksums |
668e592f898df816ca6eb56b1005e7285931031fbf9a8c831e911e579de937c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for auto-live-reload 1.0.2
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.