# pynput — card for AI agents

Monitor and control keyboard and mouse input devices programmatically.

Category: Desktop and mobile apps · PyPI package `pynput` · latest version 1.8.2 (checked 2026-11-01)
Install: `pip install pynput`
License: LGPL-3.0 (weak-copyleft)

In your own product (generator, app, hosted service): **conditions**. Weak copyleft: fine inside a closed product, but changes to the library's own files stay under its license and must be shared.

## Numbers (AgentGid data)
- Gid Score: 46.3 (#2400 of all tools, 56 of 105 in its category)
- Used in 10 public projects set up for AI coding agents (0.2%)
- Downloads last week: 525,445 (as of 2026-11-24), +18.1% over 4 weeks
- GitHub stars: 2,177 (as of 2026-11-24)
- Last push: 2026-05-12

## Often used with
python-dotenv 63.5%, Pillow 58.7%, Requests 57.1%, NumPy 55.6%, PyAutoGUI 44.4%, psutil 42.9%

## Checked alternatives (same job)
- PyGetWindow: https://agentgid.com/tools/pygetwindow/agent.md
- keyboard: https://agentgid.com/tools/keyboard/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/pynput/
- Homepage: https://github.com/moses-palmer/pynput
- Repository: https://github.com/moses-palmer/pynput

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
