feat: add fake env

This commit is contained in:
adlsdztony
2025-05-29 17:23:17 +08:00
parent 8a0ea52a31
commit 13573f6caf
9 changed files with 621 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
from typing import Any, Dict, Optional
class PythonController:
def __init__(self):
pass
def get_screenshot(self) -> Optional[bytes]:
pass
def get_accessibility_tree(self) -> Optional[str]:
pass
def get_terminal_output(self) -> Optional[str]:
pass
def get_file(self, file_path: str) -> Optional[bytes]:
pass
def execute_python_command(self, command: str) -> None:
pass
def execute_action(self, action: Dict[str, Any]):
pass
# Record video
def start_recording(self):
pass
def end_recording(self, dest: str):
pass
# Additional info
def get_vm_platform(self):
pass
def get_vm_screen_size(self):
pass
def get_vm_window_size(self, app_class_name: str):
pass
def get_vm_wallpaper(self):
pass
def get_vm_desktop_path(self) -> Optional[str]:
pass
def get_vm_directory_tree(self, path) -> Optional[Dict[str, Any]]:
pass