Flask (web framework)
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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)
Text derived from https://en.wikipedia.org/w/index.php?oldid=1356809434 under CC BY-SA 4.0; modifications have been made.