use-computer 0.0.17__tar.gz → 0.0.18__tar.gz

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.
Files changed (43) hide show
  1. {use_computer-0.0.17 → use_computer-0.0.18}/PKG-INFO +19 -8
  2. {use_computer-0.0.17 → use_computer-0.0.18}/README.md +18 -7
  3. use_computer-0.0.18/examples/_2_hello_ios.py +11 -0
  4. use_computer-0.0.18/examples/_6_hello_tvos.py +11 -0
  5. {use_computer-0.0.17 → use_computer-0.0.18}/pyproject.toml +1 -1
  6. use_computer-0.0.17/examples/_2_hello_ios.py +0 -7
  7. {use_computer-0.0.17 → use_computer-0.0.18}/.env.example +0 -0
  8. {use_computer-0.0.17 → use_computer-0.0.18}/.gitignore +0 -0
  9. {use_computer-0.0.17 → use_computer-0.0.18}/.pre-commit-config.yaml +0 -0
  10. {use_computer-0.0.17 → use_computer-0.0.18}/examples/_1_hello_macos.py +0 -0
  11. {use_computer-0.0.17 → use_computer-0.0.18}/examples/_3_recording.py +0 -0
  12. {use_computer-0.0.17 → use_computer-0.0.18}/examples/_4_file_transfer.py +0 -0
  13. {use_computer-0.0.17 → use_computer-0.0.18}/examples/_5_keepalive.py +0 -0
  14. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/__init__.py +0 -0
  15. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/accessibility.py +0 -0
  16. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/ax_transpile.py +0 -0
  17. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/client.py +0 -0
  18. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/display.py +0 -0
  19. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/errors.py +0 -0
  20. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/ios/__init__.py +0 -0
  21. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/ios/apps.py +0 -0
  22. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/ios/environment.py +0 -0
  23. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/ios/input.py +0 -0
  24. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/macos/__init__.py +0 -0
  25. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/macos/keyboard.py +0 -0
  26. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/macos/mouse.py +0 -0
  27. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/models.py +0 -0
  28. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/parsers.py +0 -0
  29. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/py.typed +0 -0
  30. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/recording.py +0 -0
  31. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/retry.py +0 -0
  32. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/sandbox.py +0 -0
  33. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/screenshot.py +0 -0
  34. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/simulators.py +0 -0
  35. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/__init__.py +0 -0
  36. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/pre_command.sh +0 -0
  37. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/task.toml +0 -0
  38. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/test_ios.sh +0 -0
  39. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/test_ios_nograder.sh +0 -0
  40. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/test_macos.sh +0 -0
  41. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/test_macos_check.sh +0 -0
  42. {use_computer-0.0.17 → use_computer-0.0.18}/use_computer/tasks/templates/test_macos_nograder.sh +0 -0
  43. {use_computer-0.0.17 → use_computer-0.0.18}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: use-computer
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary: Python SDK for the use.computer macOS and iOS Computer Use API
5
5
  Project-URL: Homepage, https://use.computer
6
6
  Project-URL: Documentation, https://api.use.computer/docs
@@ -57,15 +57,26 @@ iPhone 17 Pro on the latest installed iOS runtime.
57
57
  Known-incompatible simulator types are filtered from family selection,
58
58
  including the non-4K Apple Vision Pro type on current fleet runtimes.
59
59
 
60
+ ### Per-family input
61
+
62
+ iPhone / iPad sims have full touch + on-screen keyboard. Apple Watch supports
63
+ touch + crown / button (no `type_text` — watchOS keyboard isn't exposed). Apple
64
+ TV has no touch — drive it with `input.press_remote(RemoteButton.SELECT)` (the
65
+ remote D-pad, select, menu, home, play/pause). **Apple Vision (visionOS) is
66
+ BETA**: sessions display and you can screenshot / launch apps, but
67
+ `input.tap` is a no-op because there's no XCTest-free coordinate tap path on
68
+ visionOS yet. Use it for read-only flows for now.
69
+
60
70
  ## Examples
61
71
 
62
- | File | What it shows |
63
- | -------------------------------------------------------------- | ------------------------------------------ |
64
- | [`examples/_1_hello_macos.py`](examples/_1_hello_macos.py) | create → exec → keyboard → screenshot |
65
- | [`examples/_2_hello_ios.py`](examples/_2_hello_ios.py) | create simulator → open URL → screenshot |
66
- | [`examples/_3_recording.py`](examples/_3_recording.py) | start / stop / download a screen recording |
67
- | [`examples/_4_file_transfer.py`](examples/_4_file_transfer.py) | upload bytes, download a file back |
68
- | [`examples/_5_keepalive.py`](examples/_5_keepalive.py) | heartbeat for sessions idle > 2 min |
72
+ | File | What it shows |
73
+ | -------------------------------------------------------------- | ---------------------------------------------- |
74
+ | [`examples/_1_hello_macos.py`](examples/_1_hello_macos.py) | create → exec → keyboard → screenshot |
75
+ | [`examples/_2_hello_ios.py`](examples/_2_hello_ios.py) | create iPhone sim → open URL → screenshot |
76
+ | [`examples/_3_recording.py`](examples/_3_recording.py) | start / stop / download a screen recording |
77
+ | [`examples/_4_file_transfer.py`](examples/_4_file_transfer.py) | upload bytes, download a file back |
78
+ | [`examples/_5_keepalive.py`](examples/_5_keepalive.py) | heartbeat for sessions idle > 2 min |
79
+ | [`examples/_6_hello_tvos.py`](examples/_6_hello_tvos.py) | tvOS: pick TV family + drive the Apple Remote |
69
80
 
70
81
  For agent loops and evals: [use-computer-cookbook](https://github.com/josancamon19/use-computer-cookbook).
71
82
 
@@ -35,15 +35,26 @@ iPhone 17 Pro on the latest installed iOS runtime.
35
35
  Known-incompatible simulator types are filtered from family selection,
36
36
  including the non-4K Apple Vision Pro type on current fleet runtimes.
37
37
 
38
+ ### Per-family input
39
+
40
+ iPhone / iPad sims have full touch + on-screen keyboard. Apple Watch supports
41
+ touch + crown / button (no `type_text` — watchOS keyboard isn't exposed). Apple
42
+ TV has no touch — drive it with `input.press_remote(RemoteButton.SELECT)` (the
43
+ remote D-pad, select, menu, home, play/pause). **Apple Vision (visionOS) is
44
+ BETA**: sessions display and you can screenshot / launch apps, but
45
+ `input.tap` is a no-op because there's no XCTest-free coordinate tap path on
46
+ visionOS yet. Use it for read-only flows for now.
47
+
38
48
  ## Examples
39
49
 
40
- | File | What it shows |
41
- | -------------------------------------------------------------- | ------------------------------------------ |
42
- | [`examples/_1_hello_macos.py`](examples/_1_hello_macos.py) | create → exec → keyboard → screenshot |
43
- | [`examples/_2_hello_ios.py`](examples/_2_hello_ios.py) | create simulator → open URL → screenshot |
44
- | [`examples/_3_recording.py`](examples/_3_recording.py) | start / stop / download a screen recording |
45
- | [`examples/_4_file_transfer.py`](examples/_4_file_transfer.py) | upload bytes, download a file back |
46
- | [`examples/_5_keepalive.py`](examples/_5_keepalive.py) | heartbeat for sessions idle > 2 min |
50
+ | File | What it shows |
51
+ | -------------------------------------------------------------- | ---------------------------------------------- |
52
+ | [`examples/_1_hello_macos.py`](examples/_1_hello_macos.py) | create → exec → keyboard → screenshot |
53
+ | [`examples/_2_hello_ios.py`](examples/_2_hello_ios.py) | create iPhone sim → open URL → screenshot |
54
+ | [`examples/_3_recording.py`](examples/_3_recording.py) | start / stop / download a screen recording |
55
+ | [`examples/_4_file_transfer.py`](examples/_4_file_transfer.py) | upload bytes, download a file back |
56
+ | [`examples/_5_keepalive.py`](examples/_5_keepalive.py) | heartbeat for sessions idle > 2 min |
57
+ | [`examples/_6_hello_tvos.py`](examples/_6_hello_tvos.py) | tvOS: pick TV family + drive the Apple Remote |
47
58
 
48
59
  For agent loops and evals: [use-computer-cookbook](https://github.com/josancamon19/use-computer-cookbook).
49
60
 
@@ -0,0 +1,11 @@
1
+ from use_computer import Computer, SandboxType, SimulatorFamily
2
+
3
+ # iPhone is the default when family= is omitted. Pass family= to target a
4
+ # different simulator family (iPad, Apple Watch, Apple TV, Apple Vision); the
5
+ # SDK picks a compatible installed device_type + runtime pair for you. See
6
+ # _6_hello_tvos.py for an Apple TV walkthrough.
7
+ with Computer().create(type=SandboxType.IOS, family=SimulatorFamily.IPHONE) as ios:
8
+ ios.apps.open_url("https://example.com")
9
+ png = ios.screenshot.take_full_screen()
10
+ open("hello_ios.png", "wb").write(png)
11
+ print(f"saved hello_ios.png ({len(png)} bytes)")
@@ -0,0 +1,11 @@
1
+ from use_computer import Computer, RemoteButton, SandboxType, SimulatorFamily
2
+
3
+ # tvOS sims have no touch — drive them with the remote (D-pad + select / menu /
4
+ # home). `press_remote` accepts the enum or a string.
5
+ with Computer().create(type=SandboxType.IOS, family=SimulatorFamily.TV) as tv:
6
+ tv.input.press_remote(RemoteButton.DOWN)
7
+ tv.input.press_remote(RemoteButton.DOWN)
8
+ tv.input.press_remote(RemoteButton.SELECT)
9
+ png = tv.screenshot.take_full_screen()
10
+ open("hello_tvos.png", "wb").write(png)
11
+ print(f"saved hello_tvos.png ({len(png)} bytes)")
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "use-computer"
7
- version = "0.0.17"
7
+ version = "0.0.18"
8
8
  description = "Python SDK for the use.computer macOS and iOS Computer Use API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,7 +0,0 @@
1
- from use_computer import Computer, SandboxType
2
-
3
- with Computer().create(type=SandboxType.IOS) as ios:
4
- ios.apps.open_url("https://example.com")
5
- png = ios.screenshot.take_full_screen()
6
- open("hello_ios.png", "wb").write(png)
7
- print(f"saved hello_ios.png ({len(png)} bytes)")
File without changes
File without changes