= Flask = * Micro web development framework * https://flask.palletsprojects.com/en/2.0.x/ * Flask depends on the Jinja template engine and the Werkzeug WSGI toolkit. == Example == {{{#!highlight bash cd ~/tmp mkdir flaskproject cd flaskproject sudo apt install python3-venv python3 -m venv virtenv . virtenv/bin/activate pip install Flask find . virtenv/ }}} * nano flaskproj.py {{{#!highlight python from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "

Hello World from Flask!

" }}} {{{#!highlight bash export FLASK_APP=flaskproj flask run --host=0.0.0.0 # http://127.0.0.1:5000/ # if the file is named app.py or wsgi.py, you don’t have to set the FLASK_APP environment }}}