FastAPI is a modern, python-based high-performance web framework used to create Rest APIs. Its key features are that is fast, up to 300% faster to code, fewer bugs, easy to use, and production-friendly.

The only con about Fast API is that it’s relatively new and its community is not so big as other frameworks like Flask but I think it will grow fast as many companies like Microsoft, Netflix, and Uber are already using it.

In this post, I will show you how to create some simple GET and POST APIs using Fast API.

Installation

pip install fastapi

We will also need an ASGI server, for production such as Uvicorn.

pip install uvicorn

#python #api #fastapi #flask #python #restful

Fast & Easy Python APIs using FastAPI
1.70 GEEK