run() — fastapi Function Reference
Architecture documentation for the run() function in image05.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD d65d98a4_cd62_01f7_04b2_39b38e804546["run()"] 019617f8_a2f4_4663_ff89_0389da08479e["image05.py"] d65d98a4_cd62_01f7_04b2_39b38e804546 -->|defined in| 019617f8_a2f4_4663_ff89_0389da08479e 6590faf0_57b1_e854_51c6_c25714350aee["sync_playwright()"] 6590faf0_57b1_e854_51c6_c25714350aee -->|calls| d65d98a4_cd62_01f7_04b2_39b38e804546 style d65d98a4_cd62_01f7_04b2_39b38e804546 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/playwright/separate_openapi_schemas/image05.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", exact=True).click()
page.set_viewport_size({"width": 960, "height": 700})
# Manually add the screenshot
page.screenshot(
path="docs/en/docs/img/tutorial/separate-openapi-schemas/image05.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/image05.py.
Where is run() defined?
run() is defined in scripts/playwright/separate_openapi_schemas/image05.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