# moses-palmer/pynput

Sends virtual input commands

Repository: https://github.com/moses-palmer/pynput
Canonical: https://ross.abutalabs.com/products/pynput
Language: Python
License: LGPL-3.0
License Family: copyleft
Last push: 2026-05-12T19:11:36+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 35, longevity 100
- inputs: {"age_days": 3975, "days_push": 113, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2166, forks 287 (observed 2026-08-28T04:06:21.347303+00:00)

## What it is
pynput is a Python library for controlling and monitoring input devices such as the mouse and keyboard. It provides a cross-platform API to send virtual input events and listen to user input.

## Use cases
- automate mouse clicks and keyboard typing in python
- listen to global keyboard shortcuts in a python script
- simulate user input for gui testing
- build a macro or hotkey tool
- monitor mouse movement across platforms

## When to choose
- you need cross-platform mouse/keyboard control from python
- you want to both send and listen to input events
- you need a pure-python library without heavy dependencies

## When to avoid
- you need image-based gui automation like screen matching (use pyautogui)
- you are building browser-based automation (use selenium or playwright)
- you need low-level driver-level input injection

## Facets
- artifact type: library
- maturity: stable
- function: workflow-automation, developer-tools
- domain: developer-tools, cross-platform
- platform: python, cross-platform, windows
- tags: input-devices, mouse-control, keyboard-control, input-monitoring, gui-automation, automation, linux, macos

## Member repositories
- moses-palmer/pynput (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.347303+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:49:57.131204+00:00, confidence not recorded.
  - readme: https://github.com/moses-palmer/pynput (fetched 2026-08-28T04:06:21.347303+00:00, sha 1e3a6da8e4c4)
  - registry_pypi: https://pypi.org/pypi/pynput/json (fetched 2026-08-29T10:29:44.558398+00:00, sha b8c0ed0e8cd3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
