Skip to main content

A Windows GUI inspection companion for baihe-autogui with Win7-aware PySide6 support

Project description

baihe-autogui-inspect

baihe-autogui-inspect is a Windows GUI inspection companion for baihe-autogui. It helps you inspect desktop controls, browse UI trees, view element properties, and locate targets before writing automation scripts.

This project is based on the earlier pyside6-inspect work originally developed by Dmitry Vodopyanov and Alexander Smirnov. It is now packaged as a Baihe ecosystem tool and depends on baihe-autogui.

Features

  • Browse the UI tree of running Windows applications
  • Switch between uia, win32, and atspi backends
  • Inspect properties of the selected element
  • Pick an element directly from the desktop
  • Highlight the selected or hovered element on screen
  • Show timing information for inspection operations
  • Write logs to both the console and a rotating log file

Requirements

  • Windows
  • Python >=3.8
  • uv or pip

For Windows 7 compatibility, Python 3.8 environments are pinned to PySide6==6.1.3, which is the last PySide6 line this project treats as Win7-safe. Python 3.9 and newer resolve to a newer compatible PySide6 automatically.

Installation

Recommended for end users:

pip install "baihe-autogui[inspect]"

Or install the inspect tool directly:

pip install baihe-autogui-inspect

baihe-autogui[extra] remains available as a compatibility alias for the same extension set.

For local development:

uv sync

Or:

pip install -e .

Run

baihe-inspect

Or:

python -m baihe_autogui_inspect

Logging

By default, the app writes baihe_autogui_inspect.log in the current working directory.

Optional environment variables:

  • BAIHE_AUTOGUI_INSPECT_LOG_LEVEL
  • BAIHE_AUTOGUI_INSPECT_LOG_FILE

Example:

$env:BAIHE_AUTOGUI_INSPECT_LOG_LEVEL = "INFO"
$env:BAIHE_AUTOGUI_INSPECT_LOG_FILE = "logs\\inspect.log"
baihe-inspect

Development

Run tests:

python -m pytest -q

Run lint and type checks:

python -m ruff check src tests
python -m mypy src tests

Changelog

Release notes are tracked in CHANGELOG.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baihe_autogui_inspect-0.1.4.tar.gz (96.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baihe_autogui_inspect-0.1.4-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file baihe_autogui_inspect-0.1.4.tar.gz.

File metadata

  • Download URL: baihe_autogui_inspect-0.1.4.tar.gz
  • Upload date:
  • Size: 96.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for baihe_autogui_inspect-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6b1fe616bf23e3e590bbda6be09e5b6cc550ec94e0c2e6e116713a2756396287
MD5 259517245664ecad82c5a57fc93ecf3f
BLAKE2b-256 2ba9a0d0c9a0eceedcbc6531432cfdf73a2200a21f5468157b30272952e50f47

See more details on using hashes here.

Provenance

The following attestation bundles were made for baihe_autogui_inspect-0.1.4.tar.gz:

Publisher: release.yml on jiangbaihe/baihe-autogui-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file baihe_autogui_inspect-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for baihe_autogui_inspect-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 03231c552e89f94bff715db6b47e13e0a1ce91e09960d647cc01a587203d44d6
MD5 4932a30fdddb78a0cae447ad008698ef
BLAKE2b-256 220881300e44130fb5294fcb9f0e2ccd163dfc3e16bfd73aeb5a488645dc0a04

See more details on using hashes here.

Provenance

The following attestation bundles were made for baihe_autogui_inspect-0.1.4-py3-none-any.whl:

Publisher: release.yml on jiangbaihe/baihe-autogui-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page