Bigger Applications - Multiple Files - FastAPI
fastapi.tiangolo.com · 4,230 words · saved by 1 readers
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Bigger Applications - Multiple Files ¶ If you are building an application or a web API, it's rarely the case that you can put everything in a single file. FastAPI provides a convenience tool to structure your application while keeping all the flexibility. Note If you come from Flask, this would be the equivalent of Flask's Blueprints. An example file structure ¶ Let's say you have a file structure like this: . ├── app │ ├── __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.p
related reading
- SQL (Relational) Databases - FastAPIfastapi.tiangolo.com
- Background Tasks - FastAPIfastapi.tiangolo.com
- How To Create a React + Flask Project - miguelgrinberg.comblog.miguelgrinberg.com
- Everything I know about good API designseangoedecke.com
- FastAPI vs Flask: Comparison Guide to Making a Better Decisionturing.com
- next.js/examples at canary · vercel/next.jsgithub.com
- Deployments Concepts - FastAPIfastapi.tiangolo.com
- The Flask Mega-Tutorial, Part I: Hello, World! - miguelgrinberg.comblog.miguelgrinberg.com
- Cookbookcookbook.openai.com
- v0 by Vercel - Build Full-Stack Web Apps with AIv0.dev
- Use a Flask Blueprint to Architect Your Applications – Real Pythonrealpython.com
- Run a Server Manually - FastAPIfastapi.tiangolo.com