FastAPI is a young yet solid framework that takes advantage of newer Python features in a clean design. As its name implies, FastAPI is indeed fast, rivaling similar frameworks in languages such as Golang. With this practical book, developers familiar with Python will learn how FastAPI lets you accomplish more in less time with less code.
Author Bill Lubanovic covers the nuts and bolts of FastAPI development with how-to guides on various topics such as forms, database access, graphics, maps, and more that will take you beyond the basics. This book also includes how-to guides that will get you up to speed on RESTful APIs, data validation, authorization, and performance. With its similarities to frameworks like Flask and Django, you'll find it easy to get started with FastAPI.
Through the course of this book, you
Learn how to build web applications with FastAPIUnderstand the differences between FastAPI, Starlette, and pydanticLearn two features that set FastAPI asynchronous functions and data type checking and validationExamine new features of Python 3.8+, especially type annotationsUnderstand the differences between sync and async PythonLearn how to connect with external APIs and services
A good introduction to the fastest growing python framework. Typography 3.5 of 5 because of lack of page numbers easy to find and follow Content 4 of 5 because it is clearly written with good examples and references, but doesn't mention annotation.
Like many other other books about web frameworks, it got distracted by all the extra things around the web framework. My impression was that the book was about general development of an API in python that just happened to use fastAPI, rather than a cook focussing on fastAPI.
Which is sad, because I think it did a good job explaining how to work with the different topics it mentioned.
Книга, по сути, состоит из двух частей. Первая, где уделено внимание самой FastApi, простым языком на понятных примерах показывает основы работы с данной библиотекой. Написано очень грамотно и легко усваивается. Только лишь глава об аутентификации слишком усложнена. Вторая же часть посвящена смежным с FastApi темам и информация подается лишь самыми широкими мазками. То есть она фактически бесполезна.
As a Django developer transitioning to FastAPI, I found this book really interesting to read. The author covers a wide range of topics — I discovered many new tools and approaches. Some things are covered a bit superficially, but that’s not a big issue — we always have the web to dig deeper. The only downside is a few minor code errors here and there, but overall, the book left a very positive impression.
This book is an excellent choice for those who want to learn about the FastAPI library. The material is presented in a clear and accessible language and is well structured. Attention is paid to almost all important aspects. There are minimal errors in the text, which do not significantly affect the overall impression of the book. Where the author does not delve into topics beyond the main theme of the book, he provides extensive lists of references for further exploration.