Preface
FastAPI is a fast and efficient web framework for building APIs with Python. This book is a thorough guide on how to build an application with the FastAPI framework.
It starts with the basics of the FastAPI framework and the other technologies used throughout this book. You’ll then learn about the different aspects of the framework: the routing system, response modeling, error handling, and templating.
In this book, you will learn how to build fast, efficient, and scalable applications in Python with FastAPI. You will begin from a Hello World application to a complete API that uses a database, authentication, and templates. You will learn how to structure your application to enhance efficiency, readability, and scalability. By integrating with other libraries in your application, you will learn how to connect your application to both a SQL database and a NoSQL database, integrate templates, and build authentication. Toward the end of this book, you will learn how to write tests, containerize your application, build a continuous integration and delivery pipeline using GitHub actions, and deploy your application to multiple cloud services. All of these will be taught via a theoretical and practical approach.
By the end of this book, you’ll be equipped with the necessary knowledge to build and deploy a robust web API using the FastAPI framework.