Creating a FastAPI project in PyCharm Professional
By now, we’ve created many projects in PyCharm Professional and this isn’t very different. I’ll remind you that this set of features is only available in the Professional edition of PyCharm. If you need to use the Community edition, you can, but you’re on your own in terms of setting up the project since you won’t have access to the tooling we’re about to use.
Create a new project in PyCharm by clicking File | New Project. Then, find FastAPI in the list of templates. You can see mine in Figure 9.1:
Figure 9.1: The PyCharm project menu contains a template for a FastAPI project
As with Flask, the FastAPI project template generates some starter code and a run configuration for us, as seen in Figure 9.2:
Figure 9.2: The template generates our FastAPI starter code and run configuration
There is a lot to talk about in Figure 9.2, so I...