What is Flask?

Introduction to the Micro Framework Flask

Steffi
Data science & AI Learning Journey

--

Photo by Chokniti Khongchum on Pexels

Overview

  • We will define the term framework and distinguish it from the term library.
  • After that, we will introduce Flask and distinguish it from other frameworks.
  • We will then introduce the two components WSGI and Jinja Templates of Flask.
  • Finally, we will explain how to install Flask and how to write the first Flask app.

What is a Micro Framework?

A framework like a library is code written by another developer. We use frameworks to solve a part of a common or generic problem more easily. Common or generic problems are:

  • Routing from URLs to resources
  • Inserting dynamic data into HTML
  • Interacting with an end user

Compared to a library, the framework decides when to call the library. Frameworks are like the foundation upon which developers build applications for specific platforms.

Figure 1: Library vs. Framework

A micro framework is a term used to refer to a minimalistic web application framework. It does not need…

--

--

Steffi
Data science & AI Learning Journey

Software Engineer & ML Research Associate | Passionate about Innovation and Technology