What is FastAPI?
Released in 2018, FastAPI is a Python web framework for building RESTful APIs. It quickly gained popularity due to its ease of use, speed and robustness. FastAPI uses Pydantic to define custom data types or extend validation with methods and allows to validate, serialize and deserialize data. It also automatically generates OpenAPI documentation for APIs built in two html format using Swagger UI and Redoc and OpenAPI data in json format[1].
First let’s install Python
Photo by Rubaitul Azad on Unsplash
Go to the official website https://www.python.org/downloads, download and install python, just follow the instruction to install it.
Note, don’t forget to check the Add python in environment variable box.
After this, when you run one of the command below, you will see the version of python you have installed.