Technical requirements
To follow along with the recipes of the chapter, ensure your setup includes the following essentials:
- Python: A version 3.7 or higher should be installed on your computer
- FastAPI: Have the
fastapi
package in your working environment asyncio
: Be familiar with theasyncio
framework andasync
/await
syntax since we will use it all along the recipes
The code used in the chapter is hosted on GitHub at this address: https://github.com/PacktPublishing/FastAPI-Cookbook/tree/main/Chapter07.
You can create a virtual environment for the project within the project root folder to manage dependencies efficiently and maintain project isolation.
Within your virtual environment, you can install all the dependencies at once by using requirements.txt
, which is provided on the GitHub repository in the project folder:
$ pip install –r requirements.txt
General knowledge of the external tools we are going to use for each recipe can be beneficial...