pywinauto
A set of Python modules to automate the Microsoft Windows GUI
Decision gist · record as of 2026-08-14
Yes, if you need to automate Windows GUI interactions or test Windows desktop applications. The library is mature, actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is low and dependencies are standard. The main constraint is that it is Windows-specific for core functionality, so it is only suitable for Windows automation tasks.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Windows-only for most functionality; Win32 API backend requires Windows.
- User input emulation modules (mouse, keyboard) work on Windows and Linux, but core GUI automation is Windows-specific.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
BSD 3-clause (permissive) — Distributed under BSD 3-clause (permissive), allowing commercial and private use with minimal restrictions. No licensing friction for most use cases.
last release 2025-01-06 (585 days) · last repo commit 2026-05-23 · 6,144 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,060,852 downloads/mo, #2,770 on PyPI
Alternatives
Verify before relying
pip install pywinauto
from pywinauto.application import Application
app = Application().start("notepad.exe")
app.UntitledNotepad.Edit.type_keys("Hello World", with_spaces=True)- Current Python version support beyond the classifiers listed (2.7, 3.5, 3.6, 3.7)
- Whether the cross-platform roadmap mentioned (Linux in 2018, macOS in 2019) has been realized
- Status of the record-replay generator feature mentioned as under development
What it is and what it does
Pywinauto is a Python library for automating the Microsoft Windows graphical user interface. It lets you programmatically control windows, dialogs, and UI controls by sending mouse clicks and keyboard input, and extracting text data from controls. The library supports two backends: Win32 API (the default, lower-level) and MS UI Automation (higher-level, for modern Windows applications). It's commonly used for GUI testing, repetitive task automation, and integration testing of Windows desktop applications.
The package depends on pywin32 and comtypes for Windows-specific functionality, python-xlib for Linux support, and six for Python 2/3 compatibility. Installation is straightforward via pip with low friction. The codebase is stable and actively maintained, with a long history dating back to 2006 and a permissive BSD 3-clause license.
Use it for
- Automate repetitive Windows desktop tasks like form filling, menu navigation, and dialog interaction in legacy or custom applications.
- Write integration tests for Windows GUI applications that verify UI behavior, control state, and user workflows.
- Build test automation scripts for quality assurance of Windows desktop software without modifying the application code.
- Extract data from Windows applications by automating navigation and reading control text and properties.
- Create end-to-end test suites for Windows-based business applications as part of continuous integration pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to automate Windows GUI interactions or test Windows desktop applications.
The library is mature, actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is low and dependencies are standard. The main constraint is that it is Windows-specific for core functionality, so it is only suitable for Windows automation tasks.
Install
pywinauto on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits and a large user base (6144 stars); last release was recent, though the repository shows 585 days since the most recent release, suggesting a stable but not rapidly-iterated codebase.
Windows-only for most functionality; Win32 API backend requires Windows. User input emulation modules (mouse, keyboard) work on Windows and Linux, but core GUI automation is Windows-specific.
License in practice
Distributed under BSD 3-clause (permissive), allowing commercial and private use with minimal restrictions. No licensing friction for most use cases.
Quickstart
pip install pywinauto
from pywinauto.application import Application
app = Application().start("notepad.exe")
app.UntitledNotepad.Edit.type_keys("Hello World", with_spaces=True)
Verify before relying
- Current Python version support beyond the classifiers listed (2.7, 3.5, 3.6, 3.7)
- Whether the cross-platform roadmap mentioned (Linux in 2018, macOS in 2019) has been realized
- Status of the record-replay generator feature mentioned as under development
Package facts
| License | BSD 3-clause permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagessixpython-xlibcomtypespywin32 |
| Maintenance | Actively maintained 585 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,060,852 / month, #2,770 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: Microsoft :: WindowsProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Software Development :: User Interfaces |
Evidence: pywinauto-0.6.9-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “automate windows dialogs”
- pywinautoAutomate Microsoft Windows GUI interactions by sending mouse and…
- PyMsgBoxPyMsgBox provides JavaScript-like message box functions (alert,…
- easyguiEasyGUI provides simple, non-event-driven GUI dialogs for Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also PyAutoIt · uiautomation · PyAutoGUI · pywin32 · pypiwin32 · PyDirectInput · PyGetWindow · pywin32-ctypes · robotframework-whitelibrary · easygui