This is the core application folder, containing the main FastAPI app, configurations, services, backend, API routers, utilities, tools, and workers. It orchestrates the entire application logic using async patterns, dependency injection, and modular architecture.
-
Files:
-
Subfolders:
- api/: API routers and endpoints. api README - API definitions.
- backend/: Backend data access. backend README - Abstractions and models.
- lib/: Utility libraries. lib README - Reusable utils.
- middleware/: Request middleware. middleware README - Logging and handling.
- services/: Service layer. services README - Business logic.
- tools/: Tool implementations. tools README - Executable tools.
The main.py ties together API, services, and backend. Workers may run jobs from services/infrastructure/. Configures logging and dependencies application-wide.
- Parent Folder: Up: Root README
- Child Folders (if applicable):
Entry point for running the app; use uvicorn app.main:app.