computer-use-ootb-internal 0.0.189__py3-none-any.whl → 0.0.191__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,105 +1,105 @@
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_pptdemo():
59
-
60
- pyautogui.click(x=617, y=535)
61
- time.sleep(3)
62
-
63
- pyautogui.moveTo(x=1216, y=706, duration=0.4)
64
- time.sleep(0.1)
65
- pyautogui.click(x=1216, y=706)
66
- time.sleep(0.1)
67
- pyautogui.moveTo(x=2992, y=673, duration=0.1)
68
- time.sleep(0.5)
69
-
70
- pyautogui.typewrite("Add a fasinating 'fly wheel' transition to my presentation at the slide 6. ", interval=0.03)
71
- time.sleep(0.5)
72
- pyautogui.typewrite("Preview it when you're done.", interval=0.03)
73
- time.sleep(2)
74
-
75
- pyautogui.moveTo(x=3342, y=856, duration=0.4)
76
- time.sleep(0.5)
77
- pyautogui.click(x=3342, y=856)
78
-
79
- time.sleep(6)
80
-
81
- pyautogui.moveTo(x=668, y=150, duration=0.4)
82
- time.sleep(0.1)
83
- pyautogui.click(x=668, y=150)
84
-
85
- time.sleep(3)
86
-
87
- pyautogui.moveTo(x=949, y=2050, duration=0.4)
88
- time.sleep(0.5)
89
- pyautogui.click(x=949, y=2050)
90
-
91
- pyautogui.moveTo(x=5476, y=1033)
92
-
93
-
94
-
95
- def test_pyautogui_starrail_demo():
96
-
97
-
98
- pyautogui.moveTo(x=949, y=2050, duration=0.4)
99
- time.sleep(0.5)
100
- pyautogui.click(x=949, y=2050)
101
-
102
-
103
- if __name__ == "__main__":
104
- # 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_pptdemo():
59
+
60
+ pyautogui.click(x=617, y=535)
61
+ time.sleep(3)
62
+
63
+ pyautogui.moveTo(x=1216, y=706, duration=0.4)
64
+ time.sleep(0.1)
65
+ pyautogui.click(x=1216, y=706)
66
+ time.sleep(0.1)
67
+ pyautogui.moveTo(x=2992, y=673, duration=0.1)
68
+ time.sleep(0.5)
69
+
70
+ pyautogui.typewrite("Add a fasinating 'fly wheel' transition to my presentation at the slide 6. ", interval=0.03)
71
+ time.sleep(0.5)
72
+ pyautogui.typewrite("Preview it when you're done.", interval=0.03)
73
+ time.sleep(2)
74
+
75
+ pyautogui.moveTo(x=3342, y=856, duration=0.4)
76
+ time.sleep(0.5)
77
+ pyautogui.click(x=3342, y=856)
78
+
79
+ time.sleep(6)
80
+
81
+ pyautogui.moveTo(x=668, y=150, duration=0.4)
82
+ time.sleep(0.1)
83
+ pyautogui.click(x=668, y=150)
84
+
85
+ time.sleep(3)
86
+
87
+ pyautogui.moveTo(x=949, y=2050, duration=0.4)
88
+ time.sleep(0.5)
89
+ pyautogui.click(x=949, y=2050)
90
+
91
+ pyautogui.moveTo(x=5476, y=1033)
92
+
93
+
94
+
95
+ def test_pyautogui_starrail_demo():
96
+
97
+
98
+ pyautogui.moveTo(x=949, y=2050, duration=0.4)
99
+ time.sleep(0.5)
100
+ pyautogui.click(x=949, y=2050)
101
+
102
+
103
+ if __name__ == "__main__":
104
+ # asyncio.run(test_animations()) w
105
105
  test_pyautogui_starrail_demo()
@@ -1,29 +1,30 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computer-use-ootb-internal
3
- Version: 0.0.189
3
+ Version: 0.0.191
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=AN91PlmA9Yj5IUkqIHkby9KrfvBke6fH1rjJZWSUnvQ,28844
3
+ computer_use_ootb_internal/app_teachmode.py,sha256=BUq78BvYZtlcE16qPB-3I-p7hi_-iVTxK5Vw7DMg5Jc,28277
4
4
  computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
5
- computer_use_ootb_internal/guard_service.py,sha256=p90niBDfdF7JL_NX6aBq0lrHeTKwDZjTAVRZdSKAv8M,52619
5
+ computer_use_ootb_internal/guard_service.py,sha256=8tJA7MAZgzqfTXHtbiNVwUCQj_dkHg3vDmgisd5TyIM,51642
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=hDvzqSzAybmgFgiSI535zRGoUMVPipTiWeJlIUR-G_Q,2961
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=rBjBT57s28HrLo1x0jbchZ4GAAWkTSIPPX8bXxNveCk,2857
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,12 +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/excel_prepare.py,sha256=9JzzIy7JCpSSEae52J_pk4grGUGrc8B4NNGJ9cE4g4Q,5288
38
- computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=XL6zuFh-1I4f1O6pGOCjkkARm-HrNN0uB72trKmHag0,5543
39
- computer_use_ootb_internal/preparation/pr_prepare.py,sha256=vLsuHq2xtNANS69R6nEIWwp4Sghsh4S5EM-z7jtRj1c,5860
40
- computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=RAriQxrv55csBNBm0m8CKyd_RW8k1tXx0kdJAcOpYlg,4734
41
- computer_use_ootb_internal/preparation/word_prepare.py,sha256=7anVBZXycfWEvYStewkKcCVs1nhnJCGvt3Gxh17egdo,5280
42
- computer_use_ootb_internal-0.0.189.dist-info/METADATA,sha256=NMQEtQIXO5jG6fYmfDAy_RXZqLVarAj-NM01jtBLmXo,910
43
- computer_use_ootb_internal-0.0.189.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
- computer_use_ootb_internal-0.0.189.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
45
- computer_use_ootb_internal-0.0.189.dist-info/RECORD,,
37
+ computer_use_ootb_internal/preparation/excel_prepare.py,sha256=cKJ035tBaDM6Yyk9eriNvvuE64GmRjaCPCcVKMdzaKY,5180
38
+ computer_use_ootb_internal/preparation/powerpoint_prepare.py,sha256=eHaDOIJnBJ9QpRPZTmFiaLwa9ZWMJaEXsM0HktkjuOo,5433
39
+ computer_use_ootb_internal/preparation/pr_prepare.py,sha256=WE6PTQjpfdxDX7pdzHLuXeAddZjOaxL-vifmw_pvjek,5742
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=-SKbzckosEcOI5v2M5Pg7iFw9jTS5INJ6EoT5cHIqko,5172
42
+ computer_use_ootb_internal-0.0.191.dist-info/METADATA,sha256=fxTUFDPmEwzGOkiM_OnmZsILGl4IEGJ4uhVOMTRidAY,1048
43
+ computer_use_ootb_internal-0.0.191.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ computer_use_ootb_internal-0.0.191.dist-info/entry_points.txt,sha256=bXfyAU_qq-G1EiEgAQEioXvgEdRCFxaTooqdDD9Y4OA,258
45
+ computer_use_ootb_internal-0.0.191.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