platynui-cli 0.12.0.dev305__py3-none-win_arm64.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.
Potentially problematic release.
This version of platynui-cli might be problematic. Click here for more details.
- platynui_cli-0.12.0.dev305.data/scripts/platynui-cli.exe +0 -0
- platynui_cli-0.12.0.dev305.dist-info/METADATA +144 -0
- platynui_cli-0.12.0.dev305.dist-info/RECORD +5 -0
- platynui_cli-0.12.0.dev305.dist-info/WHEEL +4 -0
- platynui_cli-0.12.0.dev305.dist-info/sboms/platynui-cli-bin.cyclonedx.json +10397 -0
|
Binary file
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: platynui-cli
|
|
3
|
+
Version: 0.12.0.dev305
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: Operating System :: OS Independent
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
+
Classifier: Programming Language :: Rust
|
|
11
|
+
Classifier: Topic :: Software Development :: Testing
|
|
12
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
13
|
+
Classifier: Framework :: Robot Framework
|
|
14
|
+
Classifier: Framework :: Robot Framework :: Library
|
|
15
|
+
Summary: CLI for Robot Framework PlatynUI
|
|
16
|
+
Author-email: Daniel Biehl <daniel.biehl@imbus.de>
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
19
|
+
Project-URL: Changelog, https://github.com/imbus/robotframework-PlatynUI/blob/main/CHANGELOG.md
|
|
20
|
+
Project-URL: Documentation, https://github.com/imbus/robotframework-PlatynUI#readme
|
|
21
|
+
Project-URL: Homepage, https://github.com/imbus/robotframework-PlatynUI
|
|
22
|
+
Project-URL: Issues, https://github.com/imbus/robotframework-PlatynUI/issues
|
|
23
|
+
Project-URL: Source, https://github.com/imbus/robotframework-PlatynUI
|
|
24
|
+
|
|
25
|
+
# Robot Framework PlatynUI – CLI
|
|
26
|
+
|
|
27
|
+
Command‑line interface for the PlatynUI toolkit. This tool lets you inspect the desktop, query the accessibility tree via XPath‑like expressions, highlight elements, take screenshots, and drive input (focus, window control, pointer, keyboard).
|
|
28
|
+
|
|
29
|
+
Status: early alpha. APIs and output may change.
|
|
30
|
+
|
|
31
|
+
> [!WARNING]
|
|
32
|
+
> Preview release on PyPI. This package is experimental and the CLI surface may change without notice. Use for evaluation, not production.
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
Install the preview (pre-release) package from PyPI into your environment. After installation, the command `platynui-cli` is available on your PATH.
|
|
37
|
+
|
|
38
|
+
Examples:
|
|
39
|
+
|
|
40
|
+
```pwsh
|
|
41
|
+
# In a virtual environment (uv)
|
|
42
|
+
uv pip install --pre robotframework-platynui-cli
|
|
43
|
+
|
|
44
|
+
# Or with pip
|
|
45
|
+
pip install --pre robotframework-platynui-cli
|
|
46
|
+
|
|
47
|
+
# Or install as a user-level tool (uv tool)
|
|
48
|
+
uv tool install --prerelease allow robotframework-platynui-cli
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Supported platforms: Windows, macOS, and Linux. The binary includes the platform providers for your OS.
|
|
52
|
+
Note: Because this is a pre-release, some installers require an explicit flag (e.g., `--pre`) to select preview versions.
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
```pwsh
|
|
57
|
+
platynui-cli list-providers
|
|
58
|
+
platynui-cli info --format json
|
|
59
|
+
platynui-cli query "//control:Button[@Name='OK']"
|
|
60
|
+
platynui-cli highlight "//control:Button[@Name='OK']" --duration-ms 1200
|
|
61
|
+
platynui-cli screenshot .\screen.png --rect 100,100,800,600
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Most commands support `--format text|json` (default: text) where it makes sense.
|
|
65
|
+
|
|
66
|
+
## Commands
|
|
67
|
+
|
|
68
|
+
- list-providers
|
|
69
|
+
- List all known UI tree providers; marks which are currently active.
|
|
70
|
+
- Options: `--format text|json`
|
|
71
|
+
|
|
72
|
+
- info
|
|
73
|
+
- Show desktop and monitor metadata (bounds, OS, displays).
|
|
74
|
+
- Options: `--format text|json`
|
|
75
|
+
|
|
76
|
+
- query XPATH
|
|
77
|
+
- Evaluate an XPath expression against the UI tree. Prints nodes, attributes, or values.
|
|
78
|
+
- Options: `--format text|json`
|
|
79
|
+
- Example: `platynui-cli query "//control:Button[@Name='OK']"`
|
|
80
|
+
|
|
81
|
+
- watch
|
|
82
|
+
- Stream provider events (NodeAdded/Updated/Removed, TreeInvalidated).
|
|
83
|
+
- Options: `--format text|json`, `--expression XPATH` (optional additional query run per event), `--limit N`
|
|
84
|
+
|
|
85
|
+
- highlight [XPATH] | --rect X,Y,WIDTH,HEIGHT
|
|
86
|
+
- Draw a temporary highlight overlay for matched elements or a given rectangle.
|
|
87
|
+
- Options: `--duration-ms MS` (default 1500), `--clear` (clear existing highlights)
|
|
88
|
+
- Example: `platynui-cli highlight "//control:Button[@Name='OK']"`
|
|
89
|
+
|
|
90
|
+
- screenshot [FILE]
|
|
91
|
+
- Capture a PNG screenshot. If FILE is omitted, a timestamped name is created in the current directory.
|
|
92
|
+
- Options: `--rect X,Y,WIDTH,HEIGHT`
|
|
93
|
+
|
|
94
|
+
- focus XPATH
|
|
95
|
+
- Set input focus to the first node matched by the expression. Reports if the Focusable pattern is missing.
|
|
96
|
+
|
|
97
|
+
- window [XPATH] --list | --activate | --minimize | --maximize | --restore | --close | --move X Y | --resize W H
|
|
98
|
+
- List and/or control windows matched by XPATH. Without XPATH, defaults to `//control:Window`.
|
|
99
|
+
- Example: `platynui-cli window --list`
|
|
100
|
+
- Example: `platynui-cli window "//control:Window[@Name='Operations Console']" --activate --move 200 220 --resize 800 600`
|
|
101
|
+
|
|
102
|
+
- pointer …
|
|
103
|
+
- Drive pointer input. All subcommands accept advanced overrides (see below).
|
|
104
|
+
- Subcommands:
|
|
105
|
+
- `move [XPATH] [--point x,y]` – Move to element (uses @ActivationPoint or center of @Bounds) or to a point.
|
|
106
|
+
- `click [XPATH] [--point x,y] [--button left|right|middle|<code>] [--no-move]`
|
|
107
|
+
- `multi-click [XPATH] [--point x,y] [--button …] --count N [--no-move]`
|
|
108
|
+
- `press [XPATH] [--point x,y] [--button …] [--no-move]`
|
|
109
|
+
- `release [XPATH] [--button …] [--no-move]`
|
|
110
|
+
- `scroll <dx,dy> [--expr XPATH] [--no-move]`
|
|
111
|
+
- `drag --from x,y --to x,y [--from-expr XPATH] [--to-expr XPATH] [--button …]`
|
|
112
|
+
- `position` – Print current pointer position.
|
|
113
|
+
- Useful overrides (apply to all pointer subcommands via flags):
|
|
114
|
+
- `--origin desktop|bounds|absolute` with `--bounds x,y,w,h` or `--anchor x,y`
|
|
115
|
+
- Motion/profile: `--motion direct|linear|bezier|overshoot|jitter`, `--move-duration MS`, `--speed-factor F`,
|
|
116
|
+
`--acceleration constant|ease-in|ease-out|smooth-step`
|
|
117
|
+
- Timing: `--after-move MS`, `--after-input MS`, `--press-release MS`, `--after-click MS`,
|
|
118
|
+
`--before-next MS`, `--multi-click MS`, `--ensure-threshold PX`, `--ensure-timeout MS`,
|
|
119
|
+
`--scroll-delay MS`, `--scroll-step dx,dy`, `--move-time-per-pixel MS`
|
|
120
|
+
|
|
121
|
+
- keyboard …
|
|
122
|
+
- Send keyboard input.
|
|
123
|
+
- Subcommands:
|
|
124
|
+
- `type "SEQUENCE"` – Types text and chords. Example: `<Ctrl+A>Hallo`.
|
|
125
|
+
- `press "<Chord>"` – Press and hold keys. Example: `<Shift+Ctrl+S>`.
|
|
126
|
+
- `release "<Chord>"` – Release keys from a previous press.
|
|
127
|
+
- Timing overrides: `--delay-ms`, `--press-delay`, `--release-delay`, `--between-keys-delay`,
|
|
128
|
+
`--chord-press-delay`, `--chord-release-delay`, `--after-sequence-delay`, `--after-text-delay`
|
|
129
|
+
|
|
130
|
+
## XPath quick notes
|
|
131
|
+
|
|
132
|
+
- Default namespace is `control` (e.g., `//control:Button`).
|
|
133
|
+
- Attributes use PascalCase, for example `@Name`, `@Bounds`, `@ActivationPoint`.
|
|
134
|
+
- `query` outputs a colored text view by default; use `--format json` for machine‑readable output.
|
|
135
|
+
|
|
136
|
+
## Troubleshooting
|
|
137
|
+
|
|
138
|
+
- If nothing shows up in `list-providers`, ensure the build includes your OS provider (it is linked by default when building the CLI in this workspace).
|
|
139
|
+
- On Linux, accessibility needs to be enabled and AT‑SPI running. On macOS, grant accessibility permissions to your shell/terminal. On Windows, UIA should be available by default.
|
|
140
|
+
|
|
141
|
+
## License
|
|
142
|
+
|
|
143
|
+
Apache-2.0. See the repository’s LICENSE file.
|
|
144
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
platynui_cli-0.12.0.dev305.data/scripts/platynui-cli.exe,sha256=8SRoXbp8sVLAiNl3EIjHOTiZZYvWSQrRALfDvIgviWU,7303680
|
|
2
|
+
platynui_cli-0.12.0.dev305.dist-info/METADATA,sha256=aKoxOi6Cr_wM2DxVTDRjAC1OnXfaSX6e3dhf11tNlfE,6777
|
|
3
|
+
platynui_cli-0.12.0.dev305.dist-info/WHEEL,sha256=agSxb0CzzJpPcHA6HtV6Hyu3P0WI4f1HePFlvTVm6SM,94
|
|
4
|
+
platynui_cli-0.12.0.dev305.dist-info/sboms/platynui-cli-bin.cyclonedx.json,sha256=3XkCh68tbCwey5rMPgrfuVvR4IyYxSxJ_7Y3OEo2CdM,348744
|
|
5
|
+
platynui_cli-0.12.0.dev305.dist-info/RECORD,,
|