Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PlatynUI Inspector

platynui-inspector is a small desktop app for looking at the UI tree that PlatynUI sees. Use it to explore windows and controls, inspect attributes, test what is visible to the accessibility backend, and briefly highlight selected elements on screen.

Install

uv tool install --prerelease allow platynui-inspector

Inside an existing virtual environment:

uv pip install --pre platynui-inspector
# or
pip install --pre platynui-inspector

Windows and Linux are the active targets. macOS packages currently contain stub backend support.

Run

platynui-inspector

The left side shows the desktop UI tree. Selecting an element shows its attributes on the right and, when bounds are available, highlights it on screen for a moment.

Theme and settings

By default the inspector follows the system's light or dark theme. --theme system|light|dark, or the environment variable PLATYNUI_INSPECTOR_THEME, sets one for a single run.

Settings changed in the inspector — the picker key combination, the toolbar style, the theme — are saved to platynui/inspector.ron in the user's configuration directory (%APPDATA% on Windows, $XDG_CONFIG_HOME or ~/.config on Linux). PLATYNUI_INSPECTOR_SETTINGS_PATH points the inspector at another settings file.

Search result limit

The inspector limits XPath search collection to the first 5000 results by default so broad queries stay usable in an interactive UI. Override the limit with a command-line option:

platynui-inspector --search-result-limit 10000
platynui-inspector --search-result-limit unlimited

Or use the equivalent environment variable:

PLATYNUI_INSPECTOR_SEARCH_RESULT_LIMIT=10000
PLATYNUI_INSPECTOR_SEARCH_RESULT_LIMIT=unlimited

Command-line options take precedence over environment variables. Values 0, off, disabled, disable, none, and unlimited disable the guard.

Rendering options

The inspector ships with both wgpu and glow renderers. wgpu is the default; glow can be useful in virtual machines or older graphics stacks.

Command-line options take precedence over environment variables:

platynui-inspector --renderer glow --glow-hardware-acceleration off

Equivalent environment variables:

PLATYNUI_INSPECTOR_RENDERER=glow
PLATYNUI_INSPECTOR_GLOW_HARDWARE_ACCELERATION=off

Supported renderer values are wgpu and glow. Supported glow hardware acceleration values are required, preferred, and off.

The glow hardware acceleration setting applies to the glow renderer only. When glow is selected, off is treated as a best-effort request. Some Windows systems do not expose a software-only OpenGL configuration, so the inspector falls back to preferred instead of failing during window creation.

The wgpu renderer does not use the glow hardware acceleration setting. It can be influenced through the environment variables supported by wgpu itself:

WGPU_POWER_PREF=low      # low, high, or none
WGPU_BACKEND=dx12        # comma-separated: dx12, vulkan, gl, metal

WGPU_POWER_PREF changes adapter preference, such as low-power versus high-performance devices. WGPU_BACKEND limits which graphics backends wgpu may try. These settings do not force pure software rendering, but they are useful when diagnosing virtual machine or driver-specific rendering behavior.

On Windows, the inspector uses Vulkan or DX12 by default, with Vulkan preferred when available. OpenGL is not tried automatically because it can make startup noticeably slower on some systems. If you need to test OpenGL anyway, start the inspector with WGPU_BACKEND=gl.

Notes

  • On Linux/X11, make sure accessibility is enabled and AT-SPI is running.
  • On Windows, UIA is available by default, but elevated applications may require matching privileges.
  • If a highlighted element is missing or empty, the application may not expose usable bounds through the platform backend.

More information

License

Apache-2.0. See the repository's LICENSE file.

Metadata

Release files for platynui-inspector 0.13.0.dev301

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for platynui-inspector 0.13.0.dev301
File
platynui_inspector-0.13.0.dev301-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
platynui_inspector-0.13.0.dev301-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details
platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details
platynui_inspector-0.13.0.dev301-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 60.1 MB

Release files / platynui_inspector-0.13.0.dev301-py3-none-win_arm64.whl

Download URL platynui_inspector-0.13.0.dev301-py3-none-win_arm64.whl
Size 9.7 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
b9e52a3eef05958b9cb8b4170731c6c1b3e2882d67e2361aac169f93ccd855d5
BLAKE2b-256 checksum
How to use checksums
4290535a72da4b15cb4e034ba69524d5ca56ca0b4c184af279a73e88fa01dbb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / platynui_inspector-0.13.0.dev301-py3-none-win_amd64.whl

Download URL platynui_inspector-0.13.0.dev301-py3-none-win_amd64.whl
Size 10.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
00c37ca8e2bcf156821c438097e86fefbedcc7b92f283e900b88c8b45c404f87
BLAKE2b-256 checksum
How to use checksums
f0f8de241de6872b2b2a2ce9152feebef046b142d414fdf01339f1722043bf3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_x86_64.whl

Download URL platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_x86_64.whl
Size 15.2 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
56b16cbcf05285d2af2af1bd0d07edd9df250b54c6cb945909fbc4d4b27d227b
BLAKE2b-256 checksum
How to use checksums
b0d36d116e92105514894eadab9827c69618fe32810e94e2c449845d6d3834ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_aarch64.whl

Download URL platynui_inspector-0.13.0.dev301-py3-none-manylinux_2_34_aarch64.whl
Size 15.5 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
168ef30489837236d703b17ae630d0f7769d410d4115ab912cabd3cdf993d55e
BLAKE2b-256 checksum
How to use checksums
2f504ab618fdbb26340cff0bee8893a7af67281e4f76bdd6c1dcabdd88825292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / platynui_inspector-0.13.0.dev301-py3-none-macosx_11_0_arm64.whl

Download URL platynui_inspector-0.13.0.dev301-py3-none-macosx_11_0_arm64.whl
Size 9.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
587dc2b73bf044609492c54d9fd2747231976eca4e46a0b838bf3ccb7d83b977
BLAKE2b-256 checksum
How to use checksums
dfdf8a9113920d5f303adb5741c606727c6de845cb5f06d55f69754159b5ccfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page