INNER CODE UNIT · Python
InfoResponse
codeskyblue/uiautodev · uiautodev/app.py:93
class InfoResponse(BaseModel):
version: str
description: str
platform: str
code_language: str
cwd: str
drivers: List[str]
@app.get("/api/info")
def info() -> InfoResponse:
"""Information about the application"""
return InfoResponse(
version=__version__,
description="client for https://web.uiauto.dev",
platform=platform.system(), # Linux | Darwin | Windows
code_language="Python",
cwd=os.getcwd(),