Technical requirements
To dive into the chapter and follow along with the recipes, ensure your setup includes the following essentials:
- Python: Make sure to have a Python version 3.7 or higher installed on your computer.
- FastAPI: Have
fastapi
package in your working environment. - Pytest: Be familiar with
pytest
framework, which is a testing framework largely used to test Python code.
The code used in the chapter is hosted on GitHub at the address: https://github.com/PacktPublishing/FastAPI-Cookbook/tree/main/Chapter05.
You can setup a virtual environment for the project within the project root folder is also recommended to manage dependencies efficiently and maintain project isolation. Within your virtual environment, you can install all the dependencies at once by using the requirements.txt
provided on the GitHub repository in the project folder:
$ pip install –r requirements.txt
A basic knowledge of HTTP protocol, although not required, can be...