Skip to main content

Restart WSGI server on code changes

Project description


Restart wsgi server on Python code changes. Works on Windows and Linux.

Installation and usage


pip install reloadex

Install from git:

pip install

Given example Flask application.

from flask import Flask
app = Flask(__name__)

def hello_world():
    return 'Hello, World!'

def main():

if __name__ == "__main__":

To run this app with reloader specify module name, filename or command. Following invocations are supported:

reloadex my_app:main
reloadex --cmd "python"
reloadex --cmd python
reloadex --uwsgi "uwsgi --http :9090 --lazy-apps --enable-threads --master --workers 1 --wsgi-file"

Using python module invocation also works:

python -m reloadex

Reloader uses current working directory as root: there it looks for .reloadignore and recursively watches all subdirectories. If .reloadignore is not found, reloads happen on *.py file changes.

Getting source for local development

git clone
cd reloadex
pip install -e .

Project details

Download files

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

Files for reloadex, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size reloadex-0.6-py3-none-any.whl (31.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page