Flask (web framework)
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for object-relational mappers, form validation, upload handling, various open authentication technologies and several common framework related tools. Applications that use the Flask framework include Pinterest and LinkedIn.
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions. However, Flask supports extensions that can add application features as if they were implemented in Flask itself. Extensions exist for object-relational mappers, form validation, upload handling, various open authentication technologies and several common framework related tools. Applications that use the Flask framework include Pinterest and LinkedIn. ==Components== The microframework Flask is part of the Pallets Projects (formerly Pocoo), and based on several others of them, all under a BSD license. from flask import Flask app = Flask(__name__) @app.route("/") def hello() -> str: return "Hello World" if __name__ == "__main__": app.run() from flask import Flask, render_template app = Flask(__name__) @app.route("/") def message(): message = "Hello World!" return render_template("index.html",message=message)
References
No reference rows published for this article.
Cite this article
MLA
"Flask (web framework)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/flask-web-framework. Accessed 24 November 2026.
Chicago
"Flask (web framework)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/flask-web-framework.
APA
encyclopegia.org. (2026). Flask (web framework). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/flask-web-framework
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON