© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
M. LathkarHigh-Performance Web Apps with FastAPIhttps://doi.org/10.1007/978-1-4842-9178-8_7

7. Bigger Applications

Malhar Lathkar1  
(1)
Nanded, Maharashtra, India
 

So far in this book, we have seen that the FastAPI web app is contained in a single Python script (conventionally main.py). All the path operation routes, their respective operation functions, the models, all the required imports, etc., are put in the same code file.

Things will become messier if the application involves handling of more than one resources. Take the case of an ecommerce app where CRUD operations on books as well as music albums are to be performed. Putting all the HTTP operations ...

Get High-Performance Web Apps with FastAPI: The Asynchronous Web Framework Based on Modern Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.