tutorial004_py39.py — fastapi Source File
Architecture documentation for tutorial004_py39.py, a python file in the fastapi codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR a2d57267_c2dc_9ea9_0569_c60dd81d7dab["tutorial004_py39.py"] 534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"] a2d57267_c2dc_9ea9_0569_c60dd81d7dab --> 534f6e44_61b8_3c38_8b89_6934a6df9802 33415128_98b9_ab55_a56b_29f5aa5fea7a["test_tutorial004.py"] 33415128_98b9_ab55_a56b_29f5aa5fea7a --> a2d57267_c2dc_9ea9_0569_c60dd81d7dab style a2d57267_c2dc_9ea9_0569_c60dd81d7dab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from fastapi import FastAPI
tags_metadata = [
{
"name": "users",
"description": "Operations with users. The **login** logic is also here.",
},
{
"name": "items",
"description": "Manage items. So _fancy_ they have their own docs.",
"externalDocs": {
"description": "Items external docs",
"url": "https://fastapi.tiangolo.com/",
},
},
]
app = FastAPI(openapi_tags=tags_metadata)
@app.get("/users/", tags=["users"])
async def get_users():
return [{"name": "Harry"}, {"name": "Ron"}]
@app.get("/items/", tags=["items"])
async def get_items():
return [{"name": "wand"}, {"name": "flying broom"}]
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does tutorial004_py39.py do?
tutorial004_py39.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Responses subdomain.
What functions are defined in tutorial004_py39.py?
tutorial004_py39.py defines 2 function(s): get_items, get_users.
What does tutorial004_py39.py depend on?
tutorial004_py39.py imports 1 module(s): __init__.py.
What files import tutorial004_py39.py?
tutorial004_py39.py is imported by 1 file(s): test_tutorial004.py.
Where is tutorial004_py39.py in the architecture?
tutorial004_py39.py is located at docs_src/metadata/tutorial004_py39.py (domain: FastAPI, subdomain: Responses, directory: docs_src/metadata).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free