Metadata-Version: 2.4
Name: pywingui
Version: 6.1.114
Summary: Enterprise GUI automation SDK for Progress OpenEdge and Win32
Author-email: PyWinGUI Engineering <it.python101@gmail.com>
License-Expression: LicenseRef-Proprietary
Requires-Python: <3.14,>=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pywinauto-core>=0.1.13
Requires-Dist: pywinauto>=0.6.8
Requires-Dist: pyautogui>=0.9.54
Requires-Dist: google-genai>=1.0
Requires-Dist: anthropic>=2.14.0
Requires-Dist: pywin32>=306
Requires-Dist: Pillow>=11.0
Requires-Dist: comtypes>=1.4
Dynamic: license-file

# PyWinGUI


## Installation

Install from PyPI:

```bat
pip install pywingui
```

PyWinGUI currently targets:

```text
Python 3.13 on Windows x64
```

## Quick Start

```python
from pywingui.app import AppContext
from pywingui.base import BaseWindow

ctx = AppContext()
ctx.connect(title_regex=".*My Application.*")

window = BaseWindow(ctx, "My Application")
window.click("Login")
window.fill("Username", "demo")
window.fill("Password", "secret")
window.click("Submit")
```

## Configuration

```bat
pywingui init "My Application"
```

This writes `pywingui_config.py` in the current folder. Every setting is listed there, commented out, with its default value. Uncomment a setting to change it. You can also override any setting with an environment variable named `PYWINGUI_<SETTING>`. Keep API keys in environment variables, not in this file.

## Developer tools (recorder, inspector)

```bat
pywingui-tools recorder    # record clicks and typing into recorded_session_*.txt
pywingui-tools inspect     # live element inspector (F8 details, F9 export, ESC exit)
pywingui-tools init        # same as 'pywingui init'
```

The tools send no telemetry and make no network calls. The recorder saves a masked placeholder instead of anything typed into a password field.

AI vision OCR (`DEFAULT_OCR_PROVIDER = "gemini"` or `"claude"`) is part of the library, not the tools, and reads its key from `GEMINI_API_KEY` or `ANTHROPIC_API_KEY` (or `CLAUDE_API_KEY`).

## Tests

Run public tests:

```bat
python -m pytest tests -q
```

