hotreload.py
hot reload your python code!
Run any arbitrary python script every time the code changes in the file.
installation
Get the package from PyPI with pip3 install hotreload.
usage
Say you have script (script.py) that you want to run every time the code
changes in that file.
To do that, it is as simple as doing this:
import time
import logging
from hotreload import Loader
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
script = Loader("script.py")
while True:
# Check if script has been modified since last poll.
if script.has_changed():
# Execute a function from script if it has been modified.
script.main()
time.sleep(1)
author
Sayan Goswami © 2020
Metadata
Release files for hotreload 2020.6.12.15.23.48
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 | Actions |
|---|---|---|---|---|
| hotreload-2020.6.12.15.23.48.tar.gz | 2.3 kB | Without provenance | Details for hotreload-2020.6.12.15.23.48.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hotreload-2020.6.12.15.23.48-py3-none-any.whl | Python 3 | none | any | Details for hotreload-2020.6.12.15.23.48-py3-none-any.whl |
Total release size: 5.9 kB
Release files / hotreload-2020.6.12.15.23.48.tar.gz
| Download URL | hotreload-2020.6.12.15.23.48.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c5fe330221ee60af2506c33593f36b7cfdfe7bbe327438aae86e111857ae555
|
|
BLAKE2b-256 checksum How to use checksums |
7d27b7c635740d72a3a3af390fe6f8f4ff5e25e443ea4c87d021cd080f9f78be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Release files / hotreload-2020.6.12.15.23.48-py3-none-any.whl
| Download URL | hotreload-2020.6.12.15.23.48-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3675e5de541dfe6385c35637036b1d703479a9e690d2de8305b2c1ba8c08ca7a
|
|
BLAKE2b-256 checksum How to use checksums |
e7c912e3ea5ce0e5d598fabd7c6801310af6ea63bbaf14af7b3f76e9cba2b609
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Security for hotreload 2020.6.12.15.23.48
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.