Reloady
A hotreload cli that automatically reexecutes python files when it detects changes
Port of Jesper's SourceChangeMonitor.py to python 3
Instructions on how to use are here ( or on Wayback machine, just in case.. )
Installation
pip install reloady
Use cases
This package is a command line tool that can be used to automatically restart a python program when it detects changes in the source code. It is designed to be used in development environments where you want to make changes to your code and see the results immediately without manually restarting the program. Some examples use cases are:
- competitions where you want to make changes to your code and see the results immediately.
- training for problems on leetcode or codewars where you want to make changes to your code and see the results instantly.
- debugging problems in a running program by making changes to the code and seeing the results immediately.
- visualizing the output of a program in real time. examples/printer.py is an example of a program that visualizes the output of a program in real time.
P.S. cli command has been renamed from pyreload to reloady
Usage
reloady your_program.py
with arguments
reloady main.py arg1 arg2
examples
Two Sum problem
cd examples/two_sum
reloady main.py
In this example, the program will automatically restart when changes are detected in either main.py or two_sum.py.
main.py will test all cases in input.txt and compare the output with output.txt.
Colored Text example
cd examples/printer
reloady main.py
In this example, the program will automatically restart when changes are detected in either main.py or printer.py.
It is usefule to see how the colored text will look like without having to run the program manually for each change.
Metadata
Release files for reloady 0.1.7
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 |
|---|---|---|---|---|
| reloady-0.1.7.tar.gz | 4.8 kB | Without provenance | Details for reloady-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reloady-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for reloady-0.1.7-py3-none-any.whl |
Total release size: 10.1 kB
Release files / reloady-0.1.7.tar.gz
| Download URL | reloady-0.1.7.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0464320321e1874f3895c4293144688993920f5275f871d309d4a0dd37f8c47
|
|
BLAKE2b-256 checksum How to use checksums |
8f5280f20d325860a84c365ae487d2a0f8e66ca504fcae9082ee48092a035bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.4 Windows/10
|
Release files / reloady-0.1.7-py3-none-any.whl
| Download URL | reloady-0.1.7-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13bcda40348c501fe2a1fc734a734544cad7d551912404140aaa1af89ccdbe3b
|
|
BLAKE2b-256 checksum How to use checksums |
843ae9d41c3317e8d6fb55bedd0ecc304782fc45f0f2b06eadb3d6cffc5120b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.4 Windows/10
|
Security for reloady 0.1.7
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.