1from flask import Flask
2
3app = Flask(__name__)
4
5@app.route("/")
6def index():
7 return "<h1>Hello!</h1>"
8
9if __name__ == "__main__":
10 from waitress import serve
11 serve(app, host="0.0.0.0", port=8080)
12
1--- Disclaimer ---
2Some of these like Gunicorn, Nginx, uWSGI won't work on windows.
3The only WSGI server that I know that work on windows is waitress.
4
5List of WSGI servers you could use:
6 - Gunicorn
7 - Waitress (I recommend this for windows users)
8 - uWSGI
9 - Nginx
10 - Django (It's built in with WSGI)
11 - Apache