utils.py — fastapi Source File
Architecture documentation for utils.py, a python file in the fastapi codebase. 1 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d["utils.py"] 0dda2280_3359_8460_301c_e98c77e78185["typing"] e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d --> 0dda2280_3359_8460_301c_e98c77e78185 fbf5c9a0_ac68_1e92_c519_0b4bf0626929["test_list.py"] fbf5c9a0_ac68_1e92_c519_0b4bf0626929 --> e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d ca62ab9d_6699_f566_9a0c_577e941c769c["test_optional.py"] ca62ab9d_6699_f566_9a0c_577e941c769c --> e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d 04e698d5_447d_679b_7e1b_39a05b89aa16["test_optional_list.py"] 04e698d5_447d_679b_7e1b_39a05b89aa16 --> e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d bfa31883_dec4_9b4d_d2de_8ac7a3915fac["test_required.py"] bfa31883_dec4_9b4d_d2de_8ac7a3915fac --> e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d style e2341fcc_05a2_c93d_0dbb_5136ca5d8e4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import Any
def get_body_model_name(openapi: dict[str, Any], path: str) -> str:
body = openapi["paths"][path]["post"]["requestBody"]
body_schema = body["content"]["multipart/form-data"]["schema"]
return body_schema.get("$ref", "").split("/")[-1]
Domain
Subdomains
Functions
Dependencies
- typing
Imported By
Source
Frequently Asked Questions
What does utils.py do?
utils.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 utils.py?
utils.py defines 1 function(s): get_body_model_name.
What does utils.py depend on?
utils.py imports 1 module(s): typing.
What files import utils.py?
utils.py is imported by 4 file(s): test_list.py, test_optional.py, test_optional_list.py, test_required.py.
Where is utils.py in the architecture?
utils.py is located at tests/test_request_params/test_file/utils.py (domain: FastAPI, subdomain: Applications, directory: tests/test_request_params/test_file).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free