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), then open a new terminal:

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

Then 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.1"]
# ///
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.1

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.1
File Size Uploaded Provenance Actions
tapper-2026.11.1.tar.gz 100.4 kB With provenance Details for tapper-2026.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 207.5 kB

Release files / tapper-2026.11.1.tar.gz

Download URL tapper-2026.11.1.tar.gz
Size 100.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2f081cc5ba1713e8eace2668afe1c05ec002c772d6b8cc57f5818b6b7a39166
BLAKE2b-256 checksum
How to use checksums
f763d93895295a4f91f9f0fe642847911f66d58318c2a561c7b31a3b1d89d01d
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.1-py3-none-any.whl

Download URL tapper-2026.11.1-py3-none-any.whl
Size 107.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6b4438695f23c60ee7802ae7cd8740b3105163205ef23327b528ade1c162e1c
BLAKE2b-256 checksum
How to use checksums
9678f7c9b200578435b997fb6d035213d223695787310d5eeec12c1468142b48
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.1

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.1.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