cli.py — fastapi Source File
Architecture documentation for cli.py, a python file in the fastapi codebase. 1 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR f7c0ee07_c45c_e36e_fc33_e71520275df3["cli.py"] e111ecf1_9224_b3b2_398e_e6c65f0952d1["fastapi_cli.cli"] f7c0ee07_c45c_e36e_fc33_e71520275df3 --> e111ecf1_9224_b3b2_398e_e6c65f0952d1 ae74889e_99be_b193_e0b5_b9a6cad29876["__main__.py"] ae74889e_99be_b193_e0b5_b9a6cad29876 --> f7c0ee07_c45c_e36e_fc33_e71520275df3 162d1250_3ff3_7651_fde5_eac35024692a["test_fastapi_cli.py"] 162d1250_3ff3_7651_fde5_eac35024692a --> f7c0ee07_c45c_e36e_fc33_e71520275df3 style f7c0ee07_c45c_e36e_fc33_e71520275df3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
try:
from fastapi_cli.cli import main as cli_main
except ImportError: # pragma: no cover
cli_main = None # type: ignore
def main() -> None:
if not cli_main: # type: ignore[truthy-function]
message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
print(message)
raise RuntimeError(message) # noqa: B904
cli_main()
Domain
Subdomains
Functions
Dependencies
- fastapi_cli.cli
Imported By
Source
Frequently Asked Questions
What does cli.py do?
cli.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Routing subdomain.
What functions are defined in cli.py?
cli.py defines 3 function(s): cli_main, fastapi_cli, main.
What does cli.py depend on?
cli.py imports 1 module(s): fastapi_cli.cli.
What files import cli.py?
cli.py is imported by 2 file(s): __main__.py, test_fastapi_cli.py.
Where is cli.py in the architecture?
cli.py is located at fastapi/cli.py (domain: FastAPI, subdomain: Routing, directory: fastapi).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free