Flask

3.1.3 · active · verified Sat Mar 28

Flask is a lightweight WSGI web application framework in Python, designed with simplicity and flexibility in mind. The current version is 3.1.3, released on March 28, 2026, following a regular release cadence with feature and fix updates as needed.

Warnings

Install

Imports

Quickstart

A minimal Flask application that renders an 'index.html' template when accessing the root URL.

from flask import Flask, render_template, request

app = Flask(__name__)

@app.route('/')
def index():
    return render_template('index.html')

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

view raw JSON →