Skip to main content

reloadex

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


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, filename or command. Following invocations are supported:

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

Using python module invocation also works:

python -m reloadex my_app.py

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 git@github.com:iljau/reloadex.git
cd reloadex
pip install -e .

Metadata

Release files for reloadex 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for reloadex 0.6
File Interpreter ABI Platform
reloadex-0.6-py3-none-any.whl Python 3 none any Details

Release files / reloadex-0.6-py3-none-any.whl

Download URL reloadex-0.6-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b03e858f2b6f0543a4e47dd6cca055142b36f3b4c437170d473c866e3902c134
BLAKE2b-256 checksum
How to use checksums
3bce30001493a48b7ae3db72e2a7dc96cb13697e90a011a684e970a41f5768dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Security for reloadex 0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page