English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Flask is a lightweight web application framework written in Python. Its WSGI toolkit uses Werkzeug, and the template engine uses Jinja.2 . Flask is licensed under the BSD license.
Flask is also known as a “microframework” because it uses a simple core and adds other features with extensions. Flask does not have default database or form validation tools.
Flask is a lightweight and customizable framework written in Python, which is more flexible, lightweight, secure, and easy to learn than other similar frameworks. It can be well integrated with the MVC pattern for development, allowing developers to work together and small teams to complete the implementation of feature-rich small and medium-sized websites or web services in a short period of time. Additionally, Flask has strong customizability, allowing users to add corresponding features according to their needs, achieving rich functionality and expansion while maintaining the simplicity of core features. Its powerful plugin library enables users to customize websites and develop powerful websites.
Web application framework or simple web framework represents a set of libraries and modules that enable web application developers to write applications without having to worry about low-level details such as protocols, thread management, etc.
What is Flask? Flask is a web application framework written in Python. It was developed by Armin Ronacher, who leads an international organization of Python enthusiasts named Pocco. Flask is based on the Werkzeug WSGI toolkit and Jinja2Template engines. Both are Pocco projects.
The Web Server Gateway Interface (WSGI) has been adopted as the standard for Python Web application development. WSGI is a specification for a general interface between web servers and web applications.
It is a WSGI toolkit that implements request, response objects, and other utility functions. It can be built on top of which to create web frameworks. The Flask framework uses Werkzeug as one of its basic modules.
jinja2It is a popular template engine for Python. The web template system combines templates with specific data sources to present dynamic web pages.
Flask is usually called Micro FrameworkIt aims to keep the core of the application simple and extensible. Flask does not have a built-in abstraction layer for database processing and does not provide validation support. Instead, Flask supports extensions to add these features to the application. Some popular Flask extensions will be discussed in the subsequent chapters of this tutorial.