Home / File/ image03.py — fastapi Source File

image03.py — fastapi Source File

Architecture documentation for image03.py, a python file in the fastapi codebase. 2 imports, 0 dependents.

File python FastAPI Applications 2 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  e695ead1_f144_fdbf_23d0_8c533578d5a1["image03.py"]
  c16959b6_d471_41f8_1c0e_2c4fe324727a["subprocess"]
  e695ead1_f144_fdbf_23d0_8c533578d5a1 --> c16959b6_d471_41f8_1c0e_2c4fe324727a
  7d2fbdd6_32e3_8933_5a8e_c9c0b80bfd50["playwright.sync_api"]
  e695ead1_f144_fdbf_23d0_8c533578d5a1 --> 7d2fbdd6_32e3_8933_5a8e_c9c0b80bfd50
  style e695ead1_f144_fdbf_23d0_8c533578d5a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import subprocess

from playwright.sync_api import Playwright, sync_playwright


# Run playwright codegen to generate the code below, copy paste the sections in run()
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_text("GET/items/Read Items").click()
    page.get_by_role("tab", name="Schema").click()
    page.get_by_label("Schema").get_by_role("button", name="Expand all").click()
    # Manually add the screenshot
    page.screenshot(
        path="docs/en/docs/img/tutorial/separate-openapi-schemas/image03.png"
    )

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


process = subprocess.Popen(
    ["uvicorn", "docs_src.separate_openapi_schemas.tutorial001:app"]
)
try:
    with sync_playwright() as playwright:
        run(playwright)
finally:
    process.terminate()

Domain

Subdomains

Dependencies

  • playwright.sync_api
  • subprocess

Frequently Asked Questions

What does image03.py do?
image03.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Applications subdomain.
What functions are defined in image03.py?
image03.py defines 3 function(s): process, run, sync_playwright.
What does image03.py depend on?
image03.py imports 2 module(s): playwright.sync_api, subprocess.
Where is image03.py in the architecture?
image03.py is located at scripts/playwright/separate_openapi_schemas/image03.py (domain: FastAPI, subdomain: Applications, directory: scripts/playwright/separate_openapi_schemas).

Analyze Your Own Codebase

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

Try Supermodel Free