flask

Package — Web FrameworkPython 3.8+Intermediate

Lightweight micro-framework for web apps and APIs with Jinja2 templates

Quick Info

Documentation
Official Docs
Python Version
3.8+
Dependencies
Werkzeug, Jinja2, itsdangerous, click, MarkupSafe, blinker
Install
pip install flask

Learn by Difficulty

Quick Example

python
# Install: pip install flask
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"

@app.route("/user/<name>")
def user(name):
    return f"Hello, {name}!"

if __name__ == "__main__":
    app.run(debug=True)

flask is a third-party package. Lightweight micro-framework for web apps and APIs with Jinja2 templates. Install with: pip install flask

Try in Playground

Tags

packagewebframeworkmicrowsgibackend

Related Items