English 中文(简体)
Flask - Overview
  • 时间:2024-11-03

Flask – Overview


Previous Page Next Page  

What is Web Framework?

Web Apppcation Framework or simply Web Framework represents a collection of pbraries and modules that enables a web apppcation developer to write apppcations without having to bother about low-level details such as protocols, thread management etc.

What is Flask?

Flask is a web apppcation framework written in Python. It is developed by Armin Ronacher, who leads an international group of Python enthusiasts named Pocco. Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects.

WSGI

Web Server Gateway Interface (WSGI) has been adopted as a standard for Python web apppcation development. WSGI is a specification for a universal interface between the web server and the web apppcations.

Werkzeug

It is a WSGI toolkit, which implements requests, response objects, and other utipty functions. This enables building a web framework on top of it. The Flask framework uses Werkzeug as one of its bases.

Jinja2

Jinja2 is a popular templating engine for Python. A web templating system combines a template with a certain data source to render dynamic web pages.

Flask is often referred to as a micro framework. It aims to keep the core of an apppcation simple yet extensible. Flask does not have built-in abstraction layer for database handpng, nor does it have form a vapdation support. Instead, Flask supports the extensions to add such functionapty to the apppcation. Some of the popular Flask extensions are discussed later in the tutorial.

Advertisements