This is an introduction to FastAPI, a recently popular Python fast web framework. FastAPI has some features such UI is automatically generated when you write codeType safeFastIn this book, you will learn how to write a practical API through the creation of a TODO application. While organized in a systematic manner, you will be able to read it like a tutorial. We are especially focusing on the following points to make it "practical," and would be very happy if they are of any help to you.Use async/await for DB connection (There are still few articles that introduce how to write asynchronously)Clean environment by dockerScaling-aware directory structure// This is translated version from Japanese original book.
Table of contents
Chapter 1. Introduction Chapter 2. Overview of FastAPI Chapter 3. Setting up Docker environment Chapter 4. Creating a Docker image Chapter 5. Installing FastAPI Chapter 6. Hello World! Chapter 7. Application Overview and Directory Chapter 8. Routers Chapter 9. Schemas - Response Chapter 10. Schemas - Request Chapter 11. Database Connections and DB Models Chapter 12. DB Operations (CRUDs) Chapter 13. Unit Tests