run() — fastapi Function Reference
Architecture documentation for the run() function in image04.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e55c115f_c04b_9d8b_c80e_3882195e1b5c["run()"] 37cec2a7_137f_b600_a0ec_080459d7a196["image04.py"] e55c115f_c04b_9d8b_c80e_3882195e1b5c -->|defined in| 37cec2a7_137f_b600_a0ec_080459d7a196 b60fb3dc_a67d_24df_ba2c_30bf863bf5d4["sync_playwright()"] b60fb3dc_a67d_24df_ba2c_30bf863bf5d4 -->|calls| e55c115f_c04b_9d8b_c80e_3882195e1b5c style e55c115f_c04b_9d8b_c80e_3882195e1b5c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/playwright/separate_openapi_schemas/image04.py lines 7–22
def run(playwright: Playwright) -> None:
browser = playwright.chromium.launch(headless=False)
# Update the viewport manually
context = browser.new_context(viewport={"width": 960, "height": 1080})
page = context.new_page()
page.goto("http://localhost:8000/docs")
page.get_by_role("button", name="Item-Input").click()
page.get_by_role("button", name="Item-Output").click()
page.set_viewport_size({"width": 960, "height": 820})
# Manually add the screenshot
page.screenshot(
path="docs/en/docs/img/tutorial/separate-openapi-schemas/image04.png"
)
# ---------------------
context.close()
browser.close()
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the fastapi codebase, defined in scripts/playwright/separate_openapi_schemas/image04.py.
Where is run() defined?
run() is defined in scripts/playwright/separate_openapi_schemas/image04.py at line 7.
What calls run()?
run() is called by 1 function(s): sync_playwright.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free