Python Hot Reload
Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.
Installation
You can install the Python Hot Reload from PyPI:
python -m pip install py-hot-reload
Python Hot Reload is supported on Python 3.6 and above.
How to use
Python Hot Reload has a command line implementation called py-hot-reload. To see help message, call the program with -h, --help:
$ py-hot-reload -h
Usage: py-hot-reload [OPTIONS] PYTHON_FILE
Options:
-V, --version Show the version and exit.
-C, --copyright Show the copyright and exit.
-v, --verbose Verbose.
-ep, --extra-patterns TEXT Extra patterns
-ip, --ignore-patterns TEXT Ignore patterns
-i, --interval INTEGER Interval
--add-current-folder-to-patterns
Add current folder to patterns.
--ignore-venv-and-python-lib Ignore venv and python lib.
-h, --help Show this message and exit.
To run ignoring certain patterns, run using -ip, --ignore-patterns:
$ py-hot-reload -ip="*.txt;*/dir/*" <python-file>
To run with extra patterns, run using -ep, --extra-patterns:
$ py-hot-reload -ep="*.txt;*/dir/*" <python-file>
You can also call the Python Hot Reload in your own Python code, by importing from the py_hot_reload package:
import py_hot_reload
def main():
print(1)
py_hot_reload.run_with_reloader(main)
Metadata
Release files for py-hot-reload 1.0.6
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 | |
|---|---|---|---|---|
| py-hot-reload-1.0.6.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_hot_reload-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / py-hot-reload-1.0.6.tar.gz
| Download URL | py-hot-reload-1.0.6.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09ef5ac863d0b2b776346527b3507751cdde4980dfda6504f7fcd451bab96905
|
|
BLAKE2b-256 checksum How to use checksums |
8a1d00e266e840ae1f73e8dcbf05174ba4f9cc08f37ec50b36eb09c829c6890a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / py_hot_reload-1.0.6-py3-none-any.whl
| Download URL | py_hot_reload-1.0.6-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9a77538033e31ec3e633a1e3af0d4da4897916cf229b213e748d36f6cf3dfe0
|
|
BLAKE2b-256 checksum How to use checksums |
28c6fd1ee112b2d7618b554d9b0752ac053456b90140e25a61ab037de79863d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for py-hot-reload 1.0.6
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.