Technical requirements
For this chapter, you will need the following:
- Python setup
- Virtual environments
- Code editor and plugins
- REST client
The following sections cover these requirements in more detail.
Python setup
If you do not have Python installed, visit the Python download site (https://www.python.org/downloads/) to get the installer for your OS. In this book, you will be using version 3.11.7 or later.
FastAPI relies heavily on Python hints and annotations, and Python versions after 3.6 treat type hints in a similar, modern way; so, while theoretically any version later than 3.6 should work, the code in this book uses Python version 3.11.7, for compatibility reasons.
Ensure that your Python installation is upgraded to one of the latest Python versions—as stated, at least version 3.11.7—and is reachable and the default version. You can check this by:
- Typing
python
in your terminal of choice. - Using pyenv, a handy...