Install & Compatibility
Where this runs
tested against v2.0.29 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
uiautomation
✓ import uiautomation
✗ import uiautomation as auto
Finds Notepad window, sends text, and closes it.
import uiautomation as auto
# Launch Notepad if not running
if not auto.WindowControl(searchDepth=1, Name='Untitled - Notepad').Exists(0,0):
os.system('notepad')
time.sleep(1)
window = auto.WindowControl(searchDepth=1, Name='Untitled - Notepad')
edit = window.EditControl()
edit.Click()
edit.SendKeys('Hello, UI Automation!')
print('Text sent.')
window.GetWindowPattern().Close()
Upgrade
Version history
2.0.29latest on PyPI · released Aug 5, 2025
Audit
Dependencies
comtypesrequiredRequired for COM interop with UIA