# SavinaRoja/PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.

Repository: https://github.com/SavinaRoja/PyUserInput
Canonical: https://ross.abutalabs.com/products/pyuserinput
Language: Python
License: GPL-3.0
License Family: copyleft
Last push: 2021-09-08T08:22:02+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4963, "days_push": 1820, "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 1064, forks 238 (observed 2026-08-28T04:03:26.628334+00:00)

## What it is
PyUserInput is a Python library for cross-platform control of the mouse and keyboard, providing simple modules (pymouse, pykeyboard) for clicking, scrolling, typing, and sending key combinations on Windows, Mac, and X11/Linux. It also includes frameworks for listening to mouse and keyboard events via subclassable PyMouseEvent and PyKeyboardEvent classes.

## Use cases
- automate mouse clicks and keyboard typing in python
- simulate key presses and shortcuts like Alt+Tab or Win+D
- write scripts that move the mouse and click screen coordinates
- listen for and react to global mouse and keyboard events
- build simple GUI automation or testing scripts in python

## When to choose
- you need a lightweight, simple-to-install python library for mouse and keyboard control
- you need cross-platform input automation on Windows, Linux/X11, and Mac
- you want to programmatically send keystrokes, special keys, and key combos
- you need a minimal framework for listening to input events

## When to avoid
- you need active development or recent bug fixes - development moved to the PyUserInput organization repo
- you need robust Mac keyboard support, which is still a work in progress
- you need pixel-accurate image-based GUI automation or OCR-driven interaction
- you need consistent key naming across platforms without reading platform-specific source

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

## Member repositories
- SavinaRoja/PyUserInput (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.628334+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-30T06:55:46.382070+00:00, confidence not recorded.
  - readme: https://github.com/SavinaRoja/PyUserInput (fetched 2026-08-28T04:03:26.628334+00:00, sha f528de6eb8b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
