Restart WSGI server on code changes
Project description
reloadex
Restart wsgi server on Python code changes.
Installation and usage
Install:
pip install reloadex
Install from git:
pip install https://github.com/iljau/reloadex/archive/master.zip#egg=reloadex
Given example Flask application.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
def main():
app.run()
if __name__ == "__main__":
main()
To run this app with reloader specify module name or filename, with main function:
reload my_app:main
reload my_app.py:main
By default main
function is invoked, so above simplifies to:
reload my_app
reload my_app.py
Using python module invocation also works:
python -m reloadex my_app:main
Reloader uses current working directory as root: there it looks for .reloadignore
and recursively watches all subdirectories.
Getting source for local development
git clone git@github.com:iljau/reloadex.git
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
reloadex-0.3-py3-none-any.whl
(24.7 kB
view hashes)