PyAutoGUI
Python library to control mouse and keyboard, automate GUI interactions across Windows, macOS and Linux.
Utilities PyPI BSD
How PyAutoGUI is used
PyAutoGUI is a dependency in 17 of the 6,211 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,980); counting those, it appears in 100 projects, and what it is used with below comes from all of them. Projects that use it most often also use Pillow (79.0%), python-dotenv (66.0%), Requests (66.0%).
PyAutoGUI popularity over time
Gid Score 52: downloads 59, use in agent projects 51, GitHub stars 54, downloads trend 36 (each 0-100). How it is calculated.
Often used with PyAutoGUI
| Pillow | 79.0% of PyAutoGUI projects · 20.6× more than average |
|---|---|
| python-dotenv | 66.0% of PyAutoGUI projects · 7.2× more than average |
| Requests | 66.0% of PyAutoGUI projects · 9.7× more than average |
| psutil | 63.0% of PyAutoGUI projects · 33.4× more than average |
| NumPy | 60.0% of PyAutoGUI projects · 10.3× more than average |
| FastAPI | 53.0% of PyAutoGUI projects · 7.1× more than average |
| Pydantic | 52.0% of PyAutoGUI projects · 6.0× more than average |
| OpenAI Python Library | 51.0% of PyAutoGUI projects · 12.9× more than average |
From all 100 projects in our scan that use PyAutoGUI, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| GitHub Copilot | 0.3% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list PyAutoGUI as a dependency.
Install
| Package | pip install pyautogui |
|---|---|
| Main stacks | Python (100) |
| Example projects | camel-ai/seta, SALT-NLP/collaborative-gym, pipixia-labs/openteamwork, lijiaxing1997/xinghe-AI, jolie-z/Auto-JobHunter |
Alternatives to PyAutoGUI
In our scan, none of the most used tools in Utilities does the same job as PyAutoGUI: they are add-ons, companions or tools for a different task.
More in Utilities: clsx date-fns PyYAML uuid yaml js-yaml glob Lodash