Technical requirements
To follow along with all the recipes of the chapter, make sure you have these essentials in your setup:
- Python: Your environment should have a Python version above 3.9 installed.
- FastAPI: It should be installed in your virtual environment with all the dependencies it needs. If you didn’t do it in the previous chapters, you can easily do it from your terminal:
$ pip install fastapi[all]
The code that accompanies the chapter is available on GitHub at the following link: https://github.com/PacktPublishing/FastAPI-Cookbook/tree/main/Chapter06
It is also advisable to create a virtual environment for the project inside the project root folder, to handle dependencies well and keep the project separate. In your virtual environment, you can install all the dependencies at once by using the requirements.txt
file from the GitHub repo in the project folder:
$ pip install –r requirements.txt
Since the code of the chapter will make use...