# boppreh/keyboard

Hook and simulate global keyboard events on Windows and Linux.

Repository: https://github.com/boppreh/keyboard
Canonical: https://ross.abutalabs.com/products/keyboard
Language: Python
License: MIT
License Family: permissive
Topics: python, keyboard-events, keyboard-hooks, keyboard-state, hotkey, register-hotkey, scancode, callback
Last push: 2026-07-10T00:17:11+00:00

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

## Adoption (not part of the score)
Stars 3963, forks 450 (observed 2026-08-28T04:08:30.625417+00:00)

## What it is
A pure Python library for hooking global keyboard events, registering hotkeys, and simulating key presses on Windows and Linux (with experimental macOS support). It has zero dependencies and offers both low-level event capture and high-level APIs like record, play, and text abbreviations.

## Use cases
- register global hotkeys in python
- simulate keyboard key presses programmatically
- record and replay keyboard events
- create text expansion abbreviations
- capture keystrokes regardless of window focus
- automate typing tasks with python

## When to choose
- you need global keyboard hooks or hotkeys in Python without compiled dependencies
- you want to record and replay keyboard input for automation
- you need international keyboard layout support

## When to avoid
- you need actively maintained software with guaranteed support
- you need macOS support beyond experimental quality
- you need mouse input (use the companion mouse library instead)
- you cannot run with elevated privileges on Linux

## Facets
- artifact type: library
- maturity: maintenance
- function: workflow-automation, developer-tools
- domain: developer-tools, cross-platform
- platform: python, windows
- tags: keyboard-hooks, hotkeys, key-simulation, input-automation, zero-dependencies, automation, linux, macos

## Member repositories
- boppreh/keyboard (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.625417+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-29T18:24:26.483839+00:00, confidence not recorded.
  - readme: https://github.com/boppreh/keyboard (fetched 2026-08-28T04:08:30.625417+00:00, sha 8e8aebba947f)
  - registry_pypi: https://pypi.org/pypi/keyboard/json (fetched 2026-08-29T09:17:53.900806+00:00, sha 8631ba481328)
- Data as of 2026-08-30T08:39:29.467469+00:00.
