Skip to main content

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.

Project description

autoReRun v1.2.1

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 Runner as updateRunner

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",  # file X to check for updates
    "server2.toml" # file Y to check for updates
           ]
           
# start the process
updateRunner(toRun=toRun, toCheck=toCheck).start() 

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autorerun-1.2.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

autoReRun-1.2.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file autorerun-1.2.1.tar.gz.

File metadata

  • Download URL: autorerun-1.2.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for autorerun-1.2.1.tar.gz
Algorithm Hash digest
SHA256 aa288b7723950febdbf2ea1e2b5e346815c495925a1154df1282585c7b2bfa02
MD5 d1b52610a64f31765899fd585747e5fd
BLAKE2b-256 844c3f864ebf68f8caeb7975a87ab54f82100ddafd29af8698b0a191847b089c

See more details on using hashes here.

Provenance

File details

Details for the file autoReRun-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: autoReRun-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for autoReRun-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acf54fa2d54caa2642b9a57da107b38e9c537f5e41ec033dde02f1d10d1edd9d
MD5 2b0799788e76243d21ddf85e72b8dcfc
BLAKE2b-256 8d61ab39887253da6ed4d53549da2dfda3f12fcd00205e90e4d5cef8ac3e45f3

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page