platynui-cli 0.12.0.dev244__py3-none-macosx_11_0_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.

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