Home / Function/ run() — fastapi Function Reference

run() — fastapi Function Reference

Architecture documentation for the run() function in image01.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  8f816881_06a9_6040_106d_25859968fab7["run()"]
  62c59493_e592_8668_194a_63d5f622a8a3["image01.py"]
  8f816881_06a9_6040_106d_25859968fab7 -->|defined in| 62c59493_e592_8668_194a_63d5f622a8a3
  a6bbc877_c277_d2c5_47e3_b59b21590f60["_()"]
  a6bbc877_c277_d2c5_47e3_b59b21590f60 -->|calls| 8f816881_06a9_6040_106d_25859968fab7
  style 8f816881_06a9_6040_106d_25859968fab7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/playwright/request_form_models/image01.py lines 9–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="POST /login/ Login").click()
    page.get_by_role("button", name="Try it out").click()
    # Manually add the screenshot
    page.screenshot(path="docs/en/docs/img/tutorial/request-form-models/image01.png")

    # ---------------------
    context.close()
    browser.close()

Domain

Subdomains

Called By

Frequently Asked Questions

What does run() do?
run() is a function in the fastapi codebase, defined in scripts/playwright/request_form_models/image01.py.
Where is run() defined?
run() is defined in scripts/playwright/request_form_models/image01.py at line 9.
What calls run()?
run() is called by 1 function(s): _.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free