Technical requirements
To be able to follow the recipes in this chapter, you must have a good grasp of the following essentials:
- Python: You should have a good understanding of Python version 3.7 or higher. You should know how annotation works and about basic class inheritance.
fastapi
andasyncio
libraries: If you are not following the book chapter by chapter, make sure you know how to build a simple FastAPI endpoint and understandasync
/await
syntax.
The code used in the chapter is hosted on GitHub at https://github.com/PacktPublishing/FastAPI-Cookbook/tree/main/Chapter08.
To manage dependencies more efficiently and keep your project isolated, consider creating a virtual environment within the project
root folder. You can easily install all the dependencies simultaneously by using the requirements.txt
file provided on the GitHub repository in the project
folder:
$ pip install –r requirements.txt
You can then start with the first recipe...