» Python: Build a REST API with Flask » 1. Introduction » 1.1 Preparation

Preparation

Install Python

See How to install Python?.

Note: This project uses Python 3.8.13 and pip 21.3.1 for Python 3.8.

Pick an editor

Pick your favorite editor or use Visual Studio Code.

Learn Python basics

If you're not familiar with Python, you may try this tutorial: "Quick Introduction to Python."

What is REST api

See What is REST api?.

Flask web framework

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries.

Here's a basic usage example:

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "Hello, World!"