Flask

Flask is a lightweight Python web microframework. You wire routes and extensions explicitly; less built-in than Django.

from flask import Flask

app = Flask(__name__)

@app.get("/hello/<name>")
def hello(name: str):
    return f"hello, {name}"

← Back to CS Glossary