Автор: Bill Lubanovic
Издательство: O’Reilly Media, Inc.
Год: 2022-09-14
Язык: английский
Формат: epub
Размер: 10.1 MB
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. Supplemental material (code examples, exercises, etc.) is available for download at GitHub.
This book is аbout:
- The Web: An especially productive technology, how it has changed, and how to develop software for it now
- Python: An especially productive web development language
- FastAPI: An especially productive Python web framework
The two chapters in this first part discuss emerging topics in the Web and Python: services and APIs, concurrency, layered architectures, and big big data.
Part II is a high-level tour of FastAPI, a fresh Python web framework that has good answers to the questions posed in Part I.
Part III rummages much deeper through the FastAPI toolbox, including tips learned during production development.
Finally, Part IV provides a gallery of FastAPI web examples. They use a common data source — imaginary creatures — that may be a little more interesting and cohesive than the usual random expositions. These should give you a starting point for particular applications.
Through the course of this book, you will:
Learn how to build web applications with FastAPI
Understand the differences between FastAPI, Starlette, and pydantic
Learn two features that set FastAPI apart: asynchronous functions and data type checking and validation
Examine new features of Python 3.8+, especially type annotations
Understand the differences between sync and async Python
Learn how to connect with external APIs and services
Скачать FastAPI: Modern Python Web Development (Early Release)