autoReRun v1.3.0
pip install autoReRun --upgrade
A simple program to automatically kill running process(es) and re-spawn new process(es) for the runnable files everytime some specified file(s) get modified (or deleted or created). For example, Automatically re-starting any server when the server file(s) is modified.
To install:
pip install autoReRun --upgrade
pip3 install autoReRun --upgrade
python -m pip install autoReRun --upgrade
python3 -m pip install autoReRun --upgrade
Using this program is as simple as:
from autoReRun import AutoReRun
toRun = {
"server1.py":["-p 5000", "-h 0.0.0.0"], # file A to run
"server2.py":["-p 6000"], # file B to run
}
toCheck = ["server1.toml", "server2.toml"] # files to check for updates
# start the process
AutoReRun(toRun=toRun, toCheck=toCheck)
Future implementations:
- Only limited to python files, make it work with any other file type.
- Way to turn off debugger.
This project is always open to suggestions and feature requests.
Metadata
Release files for autoReRun 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autorerun-1.3.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autoReRun-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / autorerun-1.3.0.tar.gz
| Download URL | autorerun-1.3.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df7d6644a9fd7781202224fb4673efec86ec4c6873d36fa342607b5172308f10
|
|
BLAKE2b-256 checksum How to use checksums |
70454ad3619f639d9158466cc04984e050edaf931cf9df6411062f14562bf214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / autoReRun-1.3.0-py3-none-any.whl
| Download URL | autoReRun-1.3.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69c64b49e5926505ff39fbbdcdc57e05d2df97f407ece8b7441b7b1e2a333957
|
|
BLAKE2b-256 checksum How to use checksums |
e052f2f735cc592a527dc91b2c14433d365c6b4565ff2bcf5980cba72af91c07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|