Skip to main content

tapper

PyPI Python Tests

Hotkeys, key remaps and macros in plain Python. Like AutoHotkey, but your scripts are Python: your editor, debugger, tests and every library on PyPI just work.

from tapper import Group, log, start
from tapper.helper import recording

start(
    {"caps": "esc"},  # remap Caps Lock to Escape
    {"f8": "Hello,$(50ms) world!"},  # type text, with a 50 ms pause in the middle
    Group(win_exec="chrome.exe").add({"f1": "$(ctrl+t)"}),  # only in Chrome: F1 opens a tab
    {"f7": recording.toggle(log.info)},  # record keys and clicks, log them as a replayable string
)

Try the built-in demo. On Windows, install uv first (it brings its own Python):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then open a new terminal and run the demo:

uvx tapper

Features

  • Per-app and conditional hotkeys. Group hotkeys by active window, open window, keyboard language, lock-key state, cursor position, or any function you write.
  • The trigger key is swallowed by default, so your hotkey doesn't also type its letter. Opt out per hotkey or group.
  • A compact send language: $(ctrl+shift+t), $(lmb 2x), $(x400y650), $(500ms), all in one string.
  • Record and replay keystrokes and clicks as an editable send string.
  • Image and pixel search: wait for a button to appear, then click it.
  • Repeat helpers: repeat while a key is held, until toggled off, or while a condition holds.
  • Control what runs at once: cancellable actions, pause and kill switches, and opt-in parallel actions.
  • Multi-language keyboards: check or switch the layout, and type text in other alphabets.

See how it compares in tapper vs AutoHotkey vs AutoKey.

Platforms

Status
Windows Full support
Linux Keyboard only, needs root (details)
macOS Planned

Install and run

With uv (recommended: it also installs Python for you). Put the dependency at the top of your script:

# /// script
# requires-python = ">=3.12"
# dependencies = ["tapper[all]==2026.11.2"]
# ///
from tapper import start

start({"caps": "esc"})
uv run my_hotkeys.py

On Windows, to run without a console window, name the script .pyw and use uvw:

uvw run my_hotkeys.pyw

With pip (Python 3.12+):

pip install tapper[all]
python my_hotkeys.py

tapper[all] includes the tray icon and image search. Use tapper[tray] or tapper[img] for just one, or plain tapper for neither. On Linux, see the installation notes.

While a script runs, F3 restarts it and Alt+F3 quits. You can replace these, see the guide.

Learn more

Run an example straight from the web (with uv).

This one types text snippets on Shift+F9/F10/F11:

uv run https://raw.githubusercontent.com/IGalat/tapper/master/examples/text_snippets.py

More ready-to-run scripts are in examples.

Guide: Taps and Groups, conditions, the send syntax, helpers and configuration.

Changelog. tapper is in beta and versions follow CalVer; expect breaking changes between releases.

Questions, bugs and requests: GitHub issues.

License

AGPL-3.0

Metadata

Release files for tapper 2026.11.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tapper 2026.11.2
File Size Uploaded Provenance Actions
tapper-2026.11.2.tar.gz 100.4 kB With provenance Details for tapper-2026.11.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tapper 2026.11.2
File Interpreter ABI Platform Actions
tapper-2026.11.2-py3-none-any.whl Python 3 none any Details for tapper-2026.11.2-py3-none-any.whl

Total release size: 207.6 kB

Release files / tapper-2026.11.2.tar.gz

Download URL tapper-2026.11.2.tar.gz
Size 100.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6d8f8c054515f8d1178ea0355c37116884c2e94fd54c621544f2ce02b3ceff33
BLAKE2b-256 checksum
How to use checksums
d91eb496a058cbe84d88fa504531203afb91829eb31f12268170ab36983d563a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / tapper-2026.11.2-py3-none-any.whl

Download URL tapper-2026.11.2-py3-none-any.whl
Size 107.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e640e28354ee879a2f8269441851f57dd72411ef10db2957ba7cf8505ab3e02
BLAKE2b-256 checksum
How to use checksums
80a1eb054a7d97a3c0690207db019420a436db6a5c6dc87628683a2e511f6836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for tapper 2026.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tapper-2026.11.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page