whatisgithub

What is pynput?

mxschmitt/pynput — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2026-05-13

PythonAudience · developerComplexity · 2/5MaintainedSetup · easy

In one sentence

A Python library that lets your code control the mouse and keyboard, or listen for what a person is typing and clicking, across Windows, Mac, and Linux.

Mindmap

mindmap
  root((repo))
    What it does
      Simulate input
      Listen to input
      Cross platform
    Tech stack
      Python
    Use cases
      Automate clicks
      Accessibility tools
      Testing input
    Audience
      Automation users
      Developers
    Platforms
      Windows
      Mac
      Linux

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automate repetitive mouse clicks or keyboard input, like filling out forms or scripting a game.

USE CASE 2

Build accessibility tools that let people control a computer through alternative input methods.

USE CASE 3

Simulate user behavior to test how software responds to keyboard and mouse input.

USE CASE 4

Add automated demo or testing modes to a game or application.

What is it built with?

Python

How does it compare?

mxschmitt/pynput0xallam/my-recipe0xhassaan/nn-from-scratch
Stars0
LanguagePythonPythonPython
Last pushed2026-05-132022-11-22
MaintenanceMaintainedDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy-paste prompts

Prompt 1
Show me how to use pynput to simulate mouse clicks and keyboard typing in a Python script.
Prompt 2
Write a Python script with pynput that listens for and logs keyboard key presses.
Prompt 3
Help me build a form-filling automation using pynput to move the mouse and type text.
Prompt 4
Explain how pynput handles cross-platform differences between Windows, Mac, and Linux input control.

Frequently asked questions

What is pynput?

A Python library that lets your code control the mouse and keyboard, or listen for what a person is typing and clicking, across Windows, Mac, and Linux.

What language is pynput written in?

Mainly Python. The stack also includes Python.

Is pynput actively maintained?

Maintained — commit in last 6 months (last push 2026-05-13).

How hard is pynput to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is pynput for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.