MCPcopy
hub / github.com/TencentQQGYLab/AppAgent / print_with_color

Function print_with_color

scripts/utils.py:8–27  ·  view source on GitHub ↗
(text: str, color="")

Source from the content-addressed store, hash-verified

6
7
8def print_with_color(text: str, color=""):
9 if color == "red":
10 print(Fore.RED + text)
11 elif color == "green":
12 print(Fore.GREEN + text)
13 elif color == "yellow":
14 print(Fore.YELLOW + text)
15 elif color == "blue":
16 print(Fore.BLUE + text)
17 elif color == "magenta":
18 print(Fore.MAGENTA + text)
19 elif color == "cyan":
20 print(Fore.CYAN + text)
21 elif color == "white":
22 print(Fore.WHITE + text)
23 elif color == "black":
24 print(Fore.BLACK + text)
25 else:
26 print(text)
27 print(Style.RESET_ALL)
28
29
30def draw_bbox_multi(img_path, output_path, elem_list, record_mode=False, dark_mode=False):

Callers 12

run.pyFile · 0.90
learn.pyFile · 0.90
execute_adbFunction · 0.90
task_executor.pyFile · 0.90
step_recorder.pyFile · 0.90
self_explorer.pyFile · 0.90
get_model_responseMethod · 0.90
parse_explore_rspFunction · 0.90
parse_grid_rspFunction · 0.90
parse_reflect_rspFunction · 0.90
draw_bbox_multiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected