main.py — fastapi Source File
Architecture documentation for main.py, a python file in the fastapi codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3030f519_5b79_ced3_a189_59503bf192cf["main.py"] d18ad778_43b6_91bd_4968_b087c4e7535e["dependencies.py"] 3030f519_5b79_ced3_a189_59503bf192cf --> d18ad778_43b6_91bd_4968_b087c4e7535e 8dafa0e3_fd32_34a9_18a8_020e91c837a8["get_query_token"] 3030f519_5b79_ced3_a189_59503bf192cf --> 8dafa0e3_fd32_34a9_18a8_020e91c837a8 f1f0e4f6_aaf2_554e_bbc4_7712130377ba["get_token_header"] 3030f519_5b79_ced3_a189_59503bf192cf --> f1f0e4f6_aaf2_554e_bbc4_7712130377ba 5d47e745_ef80_a325_9c8d_91498e3b0048["__init__.py"] 3030f519_5b79_ced3_a189_59503bf192cf --> 5d47e745_ef80_a325_9c8d_91498e3b0048 938f77f5_eba9_3c12_5853_ca8d33a82f50["__init__.py"] 3030f519_5b79_ced3_a189_59503bf192cf --> 938f77f5_eba9_3c12_5853_ca8d33a82f50 534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"] 3030f519_5b79_ced3_a189_59503bf192cf --> 534f6e44_61b8_3c38_8b89_6934a6df9802 style 3030f519_5b79_ced3_a189_59503bf192cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from fastapi import Depends, FastAPI
from .dependencies import get_query_token, get_token_header
from .internal import admin
from .routers import items, users
app = FastAPI(dependencies=[Depends(get_query_token)])
app.include_router(users.router)
app.include_router(items.router)
app.include_router(
admin.router,
prefix="/admin",
tags=["admin"],
dependencies=[Depends(get_token_header)],
responses={418: {"description": "I'm a teapot"}},
)
@app.get("/")
async def root():
return {"message": "Hello Bigger Applications!"}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does main.py do?
main.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Applications subdomain.
What functions are defined in main.py?
main.py defines 1 function(s): root.
What does main.py depend on?
main.py imports 6 module(s): __init__.py, __init__.py, __init__.py, dependencies.py, get_query_token, get_token_header.
Where is main.py in the architecture?
main.py is located at docs_src/bigger_applications/app_py39/main.py (domain: FastAPI, subdomain: Applications, directory: docs_src/bigger_applications/app_py39).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free