Skip to main content

PyWinGUI

Installation

Install from PyPI:

pip install pywingui

PyWinGUI currently targets:

Python 3.13 on Windows x64

Quick Start

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

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)

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:

python -m pytest tests -q

Metadata

Release files for pywingui 6.1.114

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

Source distribution (sdist)

Source distribution for pywingui 6.1.114
File Size Uploaded Provenance Actions
pywingui-6.1.114.tar.gz 2.0 MB Without provenance Details for pywingui-6.1.114.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywingui 6.1.114
File Interpreter ABI Platform Actions
pywingui-6.1.114-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pywingui-6.1.114-cp313-cp313-win_amd64.whl

Total release size: 4.0 MB

Release files / pywingui-6.1.114.tar.gz

Download URL pywingui-6.1.114.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
855a7338a94529ade4bb92cc6478732d0c0e4c908aa1914ea6dc9b3de87722e8
BLAKE2b-256 checksum
How to use checksums
539f4175be15881ee0a48bd1bc859ec98ce1eeac2b46a765abda946c28d3cb6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.17

Release files / pywingui-6.1.114-cp313-cp313-win_amd64.whl

Download URL pywingui-6.1.114-cp313-cp313-win_amd64.whl
Size 2.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b3966187d6f51bb5b3d089682525b4dae5d403a574e54e35be6dc16edb5e888d
BLAKE2b-256 checksum
How to use checksums
4b5c74e73adbfbcd14aea8fae3d1267c08ca72fb12a6408b33a92063c89a93b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.17

Security for pywingui 6.1.114

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.1.114 This release

2 release files No provenance

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