image01.py — fastapi Source File
Architecture documentation for image01.py, a python file in the fastapi codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 132bbf6d_677d_98e8_d28e_c87c5f9c1c5b["image01.py"] c16959b6_d471_41f8_1c0e_2c4fe324727a["subprocess"] 132bbf6d_677d_98e8_d28e_c87c5f9c1c5b --> c16959b6_d471_41f8_1c0e_2c4fe324727a 7d2fbdd6_32e3_8933_5a8e_c9c0b80bfd50["playwright.sync_api"] 132bbf6d_677d_98e8_d28e_c87c5f9c1c5b --> 7d2fbdd6_32e3_8933_5a8e_c9c0b80bfd50 style 132bbf6d_677d_98e8_d28e_c87c5f9c1c5b 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("POST/items/Create Item").click()
page.get_by_role("tab", name="Schema").first.click()
# Manually add the screenshot
page.screenshot(
path="docs/en/docs/img/tutorial/separate-openapi-schemas/image01.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
Functions
Dependencies
- playwright.sync_api
- subprocess
Source
Frequently Asked Questions
What does image01.py do?
image01.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 image01.py?
image01.py defines 3 function(s): process, run, sync_playwright.
What does image01.py depend on?
image01.py imports 2 module(s): playwright.sync_api, subprocess.
Where is image01.py in the architecture?
image01.py is located at scripts/playwright/separate_openapi_schemas/image01.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