What is Flask

In this tutorial, we will learn what is Flask and its features.

This tutorial will help you to understand What is Flask Python? How to install Python Flask?

Let’s dive into the flask python intro.

What is Flask?

Flask is a web application framework written in Python programming language.

It was developed by Armin Ronacher.

Flask provides tools and libraries that allow you to build a web application.

Features of Flask.

These are the features of the Flask framework that make it an ideal framework for developing a web application.

Flask provides a development server and a debugger.

It uses the Jinja template.

It provides integrated support for unit testing.

Many extensions are available, it can be used to enhance the functionality of Web applications.

What is a Micro Framework?

Microframework is a type of container that consists of features and functions. It helps to develop smaller web applications with minimal code.

In comparison to full-stack frameworks, micro-framework does not contain all tools, helpers, and libraries.

Microframeworks are specially designed for building APIs for other applications.

ex: Flask

Why is Flask called a Micro Framework?

The flask is lightweight and only provides the essential tool. That is why Flask is called a micro-framework.

It only provides the necessary components for web development such as routing, session, and request handling.

How to install Flask Python?

Type “CMD” in the search bar and hit Enter key to open the command line.

First, check whether Python is installed in your system.

Type “python –version” and hit enter. If it shows the python version it means Python is already installed in your system.

If not shows the python version, then you first need to install Python.

Type “pip install python” and hit enter. It will install Python in your system.

Python is successfully installed. Now You can install Flask.

Type “pip install Flask” in the command line and hit enter.

This install Flask for your default Python installation.

Wait for the installation to complete. Now you are ready to use Flask to build a web application.

Conclusion:

Flask is light and features-rich microframework. Flask comes with so many features that help to create small web applications easily. This includes requests, responses, routing, object, and template rendering.

So, If you are looking to create APIs or a small web app in Python then Flask is a good option for you.

Leave a Comment