computer-use-ootb-internal 0.0.179__py3-none-any.whl → 0.0.181__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,96 +1,96 @@
1
- import pyautogui
2
- import asyncio
3
- import sys
4
- import time
5
- from pathlib import Path
6
- from computer_use_ootb_internal.computer_use_demo.tools.computer import ComputerTool
7
-
8
-
9
- # pyautogui.keyDown("alt")
10
-
11
-
12
- # pyautogui.click(x=1600, y=47)
13
- # pyautogui.click(x=1600, y=47)
14
- # pyautogui.keyUp("alt")
15
-
16
-
17
- async def test_animations():
18
-
19
- # Initialize the computer tool
20
- computer = ComputerTool()
21
-
22
- # # Test mouse move animation
23
- print("Testing mouse move animation...")
24
- # await computer(action="mouse_move_windll", coordinate=(1600, 500))
25
- # print("Waiting 2 seconds...")
26
- # await asyncio.sleep(2)
27
-
28
- # # Test click animation
29
- # print("Testing click animation...")
30
- # await computer(action="left_click_windll", coordinate=(1600, 300))
31
- # print("Waiting 2 seconds...")
32
- # await asyncio.sleep(2)
33
-
34
- # Test another move
35
- print("Testing move and click sequence...")
36
- await computer(action="key_down_windll", text='alt')
37
- # pyautogui.keyDown('alt')
38
- # await asyncio.sleep(1)
39
- # await computer(action="mouse_move_windll", coordinate=(2550+1600, 45))
40
- # await asyncio.sleep(1)
41
- # await computer(action="left_click", coordinate=(2550+1600, 45))
42
- await computer(action="mouse_move", coordinate=(1600, 45))
43
- # pyautogui.keyDown('alt')
44
-
45
- await computer(action="left_click", coordinate=(1600, 45))
46
- # await computer(action="left_cl1ck_windll", coordinate=(2550+1600, 45))
47
- await asyncio.sleep(1)
48
- await computer(action="key_up_windll", text='alt')
49
- # pyautogui.keyUp('alt')
50
-
51
- # Wait for animations to comple1e
52
- print("Waiting for animations to complete...")
53
- await asyncio.sleep(3)
54
-
55
- print("Test completed")
56
-
57
-
58
- def test_pyautogui():
59
-
60
- pyautogui.click(x=2820, y=208)
61
- time.sleep(3)
62
-
63
- pyautogui.moveTo(x=3491, y=381, duration=0.4)
64
- time.sleep(0.1)
65
- pyautogui.click(x=3491, y=381)
66
- time.sleep(0.5)
67
-
68
- pyautogui.typewrite("Add a fasinating 'fly wheel' transition to my presentation at the slide 6. ", interval=0.03)
69
- time.sleep(0.5)
70
- pyautogui.typewrite("Preview it when you're done.", interval=0.03)
71
- time.sleep(2)
72
-
73
- pyautogui.moveTo(x=4086, y=450, duration=0.4)
74
- time.sleep(0.5)
75
- pyautogui.click(x=4086, y=450)
76
-
77
- time.sleep(6)
78
-
79
- pyautogui.moveTo(x=3258, y=1033, duration=0.4)
80
- time.sleep(0.1)
81
- pyautogui.click(x=3258, y=1033)
82
-
83
- time.sleep(3)
84
-
85
- pyautogui.moveTo(x=2826, y=63, duration=0.4)
86
- time.sleep(0.1)
87
- pyautogui.click(x=2826, y=63)
88
-
89
- pyautogui.moveTo(x=0, y=0)
90
-
91
-
92
-
93
-
94
- if __name__ == "__main__":
95
- # asyncio.run(test_animations()) w
1
+ import pyautogui
2
+ import asyncio
3
+ import sys
4
+ import time
5
+ from pathlib import Path
6
+ from computer_use_ootb_internal.computer_use_demo.tools.computer import ComputerTool
7
+
8
+
9
+ # pyautogui.keyDown("alt")
10
+
11
+
12
+ # pyautogui.click(x=1600, y=47)
13
+ # pyautogui.click(x=1600, y=47)
14
+ # pyautogui.keyUp("alt")
15
+
16
+
17
+ async def test_animations():
18
+
19
+ # Initialize the computer tool
20
+ computer = ComputerTool()
21
+
22
+ # # Test mouse move animation
23
+ print("Testing mouse move animation...")
24
+ # await computer(action="mouse_move_windll", coordinate=(1600, 500))
25
+ # print("Waiting 2 seconds...")
26
+ # await asyncio.sleep(2)
27
+
28
+ # # Test click animation
29
+ # print("Testing click animation...")
30
+ # await computer(action="left_click_windll", coordinate=(1600, 300))
31
+ # print("Waiting 2 seconds...")
32
+ # await asyncio.sleep(2)
33
+
34
+ # Test another move
35
+ print("Testing move and click sequence...")
36
+ await computer(action="key_down_windll", text='alt')
37
+ # pyautogui.keyDown('alt')
38
+ # await asyncio.sleep(1)
39
+ # await computer(action="mouse_move_windll", coordinate=(2550+1600, 45))
40
+ # await asyncio.sleep(1)
41
+ # await computer(action="left_click", coordinate=(2550+1600, 45))
42
+ await computer(action="mouse_move", coordinate=(1600, 45))
43
+ # pyautogui.keyDown('alt')
44
+
45
+ await computer(action="left_click", coordinate=(1600, 45))
46
+ # await computer(action="left_cl1ck_windll", coordinate=(2550+1600, 45))
47
+ await asyncio.sleep(1)
48
+ await computer(action="key_up_windll", text='alt')
49
+ # pyautogui.keyUp('alt')
50
+
51
+ # Wait for animations to comple1e
52
+ print("Waiting for animations to complete...")
53
+ await asyncio.sleep(3)
54
+
55
+ print("Test completed")
56
+
57
+
58
+ def test_pyautogui():
59
+
60
+ pyautogui.click(x=2820, y=208)
61
+ time.sleep(3)
62
+
63
+ pyautogui.moveTo(x=3491, y=381, duration=0.4)
64
+ time.sleep(0.1)
65
+ pyautogui.click(x=3491, y=381)
66
+ time.sleep(0.5)
67
+
68
+ pyautogui.typewrite("Add a fasinating 'fly wheel' transition to my presentation at the slide 6. ", interval=0.03)
69
+ time.sleep(0.5)
70
+ pyautogui.typewrite("Preview it when you're done.", interval=0.03)
71
+ time.sleep(2)
72
+
73
+ pyautogui.moveTo(x=4086, y=450, duration=0.4)
74
+ time.sleep(0.5)
75
+ pyautogui.click(x=4086, y=450)
76
+
77
+ time.sleep(6)
78
+
79
+ pyautogui.moveTo(x=3258, y=1033, duration=0.4)
80
+ time.sleep(0.1)
81
+ pyautogui.click(x=3258, y=1033)
82
+
83
+ time.sleep(3)
84
+
85
+ pyautogui.moveTo(x=2826, y=63, duration=0.4)
86
+ time.sleep(0.1)
87
+ pyautogui.click(x=2826, y=63)
88
+
89
+ pyautogui.moveTo(x=0, y=0)
90
+
91
+
92
+
93
+
94
+ if __name__ == "__main__":
95
+ # asyncio.run(test_animations()) w
96
96
  test_pyautogui()
@@ -1,29 +1,30 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.179
3
+ Version: 0.0.181
4
4
  Summary: Computer Use OOTB
5
5
  Author-email: Siyuan Hu <siyuan.hu.sg@gmail.com>
6
6
  Requires-Python: >=3.11
7
7
  Requires-Dist: anthropic[bedrock,vertex]>=0.37.1
8
8
  Requires-Dist: boto3>=1.28.57
9
+ Requires-Dist: flask>=2.0
9
10
  Requires-Dist: google-auth<3,>=2
10
11
  Requires-Dist: gradio>=5.6.0
11
12
  Requires-Dist: jsonschema==4.22.0
12
13
  Requires-Dist: litellm
13
14
  Requires-Dist: matplotlib
14
15
  Requires-Dist: opencv-python
15
- Requires-Dist: pre-commit==3.8.0
16
+ Requires-Dist: psutil>=5.0; sys_platform == 'win32'
16
17
  Requires-Dist: pyautogui==0.9.54
17
- Requires-Dist: pyside6
18
- Requires-Dist: pytest-asyncio==0.23.6
19
- Requires-Dist: pytest==8.3.3
20
- Requires-Dist: pywinauto
21
- Requires-Dist: ruff==0.6.7
18
+ Requires-Dist: pywin32>=306; sys_platform == 'win32'
19
+ Requires-Dist: pywinauto; sys_platform == 'win32'
20
+ Requires-Dist: requests>=2.0
22
21
  Requires-Dist: screeninfo
23
22
  Requires-Dist: streamlit>=1.38.0
24
23
  Requires-Dist: textdistance
25
- Requires-Dist: uiautomation
24
+ Requires-Dist: uiautomation; sys_platform == 'win32'
25
+ Requires-Dist: waitress>=2.0
26
26
  Provides-Extra: dev
27
+ Requires-Dist: pre-commit>=3.8.0; extra == 'dev'
27
28
  Requires-Dist: pytest-asyncio>=0.23.6; extra == 'dev'
28
29
  Requires-Dist: pytest>=8.3.3; extra == 'dev'
29
30
  Requires-Dist: ruff>=0.6.7; extra == 'dev'
@@ -1,16 +1,16 @@
1
1
  computer_use_ootb_internal/README.md,sha256=FxpW95lyub2iX73ZDfK6ML7SdEKg060H5I6Grub7li4,31
2
2
  computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
3
- computer_use_ootb_internal/app_teachmode.py,sha256=tfuZPiTVzVRIAVDdYAmzUmOZ91R8qrJEWIXBvfzCdSA,27758
3
+ computer_use_ootb_internal/app_teachmode.py,sha256=zGccyiqOnid8Yntm2F5Yvj6HA5Z2CoE9IqsxRZdieUg,27548
4
4
  computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
5
- computer_use_ootb_internal/guard_service.py,sha256=ThF_Y8FcBQseXo6-5hIh_Z4cISkCLLEgjWrR2BIV-C0,50940
5
+ computer_use_ootb_internal/guard_service.py,sha256=UkRsMT7x5m2ViNGcQaipzjG7fHuGSAN3x0Ed15Wbq0E,51323
6
6
  computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
7
- computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=Tntyv-tokV767n7IkO3r9xjLG3UKHziMnps7ydOvg7M,8700
8
- computer_use_ootb_internal/service_manager.py,sha256=_aFUtvSbovX73PY1QE01RkaqGV6swJaStrOwcg_Df94,9928
9
- computer_use_ootb_internal/signal_connection.py,sha256=e6eGByhb2Gx8HHJHrHM3HvchobSUmba1y7-YRB6L59E,1821
10
- computer_use_ootb_internal/test_autogui.py,sha256=UM5A8e2fArUovZIC_E6Fd1zsa5LBQRTYiRgq8H9I4Dw,2705
7
+ computer_use_ootb_internal/run_teachmode_ootb_args.py,sha256=1fLVUDHcZIeHbmbk36GX8ccjSn74riqTEWLfrx0FgKU,8463
8
+ computer_use_ootb_internal/service_manager.py,sha256=SD8jzfn0VVXBOr_nP6zmBWSC2TzrU_sp2e5JJkSlQFU,9734
9
+ computer_use_ootb_internal/signal_connection.py,sha256=8jPLOj0WSBXI_NElm5A-F146DTAE5LdL07lov7YXTNQ,1774
10
+ computer_use_ootb_internal/test_autogui.py,sha256=GRymynaf9yYunY94_e7WAUp0lebZd4wwDqIwG2E-780,2610
11
11
  computer_use_ootb_internal/computer_use_demo/animation/click_animation.py,sha256=tP1gsayFy-CKk10UlrE9RlexwlHWiHQUe5Ogg4vQvSg,3234
12
12
  computer_use_ootb_internal/computer_use_demo/animation/icons8-select-cursor-transparent-96.gif,sha256=4LfwsfFQnREXrNRs32aJU2jO65JXianJoL_8q7-8elg,30966
13
- computer_use_ootb_internal/computer_use_demo/animation/test_animation.py,sha256=SOJz2yffXTkjuAHqk0IZLcMriR0KQYTo7W1b8wGyRGY,1222
13
+ computer_use_ootb_internal/computer_use_demo/animation/test_animation.py,sha256=2R1u98OLKYalSZ5nt5vvyZ71FL5R5vLv-n8zM8jVdV8,1183
14
14
  computer_use_ootb_internal/computer_use_demo/executor/teachmode_executor.py,sha256=7wG3K4s2HkLznXPRER4jOo20qakFA9Iw_tYMg9d3r9s,16154
15
15
  computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/__init__.py,sha256=h2CNeuACklxVpJC65QR8_6AvSybEZLmeO45hY_-lLBs,61
16
16
  computer_use_ootb_internal/computer_use_demo/gui_agent/gui_parser/simple_parser/gui_capture.py,sha256=CxFJbsSb68ERKH7-C4RaaZy7FIhhzrzGx5qQJ4C37cA,13907
@@ -34,9 +34,12 @@ computer_use_ootb_internal/computer_use_demo/tools/edit.py,sha256=b0PwUitxckHCQq
34
34
  computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO44CEirL9hpGy3NmKbjfMpyeVmn8Y,1595
35
35
  computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
36
36
  computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
37
- computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=1je2N_Pedvp2p_o3aQGl2FF4A8R0H9-GK_e3nqkpzzA,3267
38
- computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=RAriQxrv55csBNBm0m8CKyd_RW8k1tXx0kdJAcOpYlg,4734
39
- computer_use_ootb_internal-0.0.179.dist-info/METADATA,sha256=reNlGleAst1Q9UPYNIYsc_6XHfLgnm8ooOCwaBG71po,910
40
- computer_use_ootb_internal-0.0.179.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- computer_use_ootb_internal-0.0.179.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
42
- computer_use_ootb_internal-0.0.179.dist-info/RECORD,,
37
+ computer_use_ootb_internal/preparation/excel_prepare.py,sha256=CPWvuP56_AV816m2qNDWX_R5zrn7pmgOEuUmJYbtg9Q,4659
38
+ computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=fAijB09ILDGpD3W0MB7xfQMqzLaWW7rtOxbKXlH4YiI,4744
39
+ computer_use_ootb_internal/preparation/pr_prepare.py,sha256=4Xxe7I2iMUpGTZFvoRrPg-uwPkq_TALquphyYt5t59E,5085
40
+ computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=r0b19M_c1sXkN3_MRFjql8w_ThC9nZUe8zbSLYUvKS8,4635
41
+ computer_use_ootb_internal/preparation/word_prepare.py,sha256=llNM-sInwnfLRDbfCwS71aeMg9npj9JQ1I7jM3ZoJp0,4665
42
+ computer_use_ootb_internal-0.0.181.dist-info/METADATA,sha256=y1hUmXrNBAKe8KeaoHjyPpOncZkjorJR-C7MTVvkwfo,1048
43
+ computer_use_ootb_internal-0.0.181.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ computer_use_ootb_internal-0.0.181.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
+ computer_use_ootb_internal-0.0.181.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ computer-use-ootb-internal = computer_use_ootb_internal.app_teachmode:main
3
+ ootb-install-service = computer_use_ootb_internal.service_manager:install_and_start
4
+ ootb-remove-service = computer_use_ootb_internal.service_manager:stop_and_remove
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- computer-use-ootb-internal = computer_use_ootb_internal.app_teachmode:main