Skip to main content

Cross-platform lightweight keyboard simulator

Project description

crosspress v­0.3.0

Cross-platform lightweight keyboard simulator

Python usage

pip install crosspress
from crosspress import (tap, CP_NOISY, CP_ERROR)
tap("x, left shift + a")  # default usage
tap("x, left shift + a", delay=0.5)  # 0.5 seconds delay between taps
tap("x, left shift + a", behavior=CP_NOISY)  # highest log level
tap("x, left shift + a", behavior=CP_ERROR)  # error level

CLI usage

crosspress -t "x, left shift + a"

You can use the -d, --delay arguments to set the delay between taps.

Arguments -n, --noisy for the highest log level or -e, --error for error level.

crosspress -t "x, left shift + a" --delay 0.5 --error

Keyboard shortcuts

Windows

­', -, ., /, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ;, =, [, \, ], `, a, b, backspace, c, caps lock, comma, d, delete, down arrow, e, end, enter, esc, f, f1, f10, f11, f12, f2, f3, f4, f5, f6, f7, f8, f9, g, h, home, i, insert, j, k, l, left alt, left arrow, left ctrl, left meta, left shift, left win, m, n, num 0, num 1, num 2, num 3, num 4, num 5, num 6, num 7, num 8, num 9, num add, num decimal, num divide, num enter, num lock, num multiply, num subtract, o, p, page down, page up, pause, q, r, right alt, right arrow, right ctrl, right meta, right shift, right win, s, scroll lock, space, t, tab, u, up arrow, v, w, x, y, z

macOS

­', -, ., /, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ;, =, [, \, ], `, b, backspace, c, caps lock, clear, comma, d, delete, down arrow, e, end, enter, esc, f, f1, f10, f11, f12, f2, f3, f4, f5, f6, f7, f8, f9, g, h, home, i, j, k, l, left alt, left arrow, left cmd, left ctrl, left meta, left option, left shift, m, n, num 0, num 1, num 2, num 3, num 4, num 5, num 6, num 7, num 8, num 9, num add, num decimal, num divide, num enter, num equal, num multiply, num subtract, o, p, page down, page up, q, r, right alt, right arrow, right cmd, right ctrl, right meta, right option, right shift, s, space, t, tab, u, up arrow, v, w, x, y, z

Linux

­', -, ., /, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ;, =, [, \, ], `, a, b, backspace, c, caps lock, comma, d, delete, down arrow, e, end, enter, esc, f, f1, f10, f11, f12, f2, f3, f4, f5, f6, f7, f8, f9, g, h, home, i, insert, j, k, l, left alt, left arrow, left ctrl, left meta, left shift, m, n, num 0, num 1, num 2, num 3, num 4, num 5, num 6, num 7, num 8, num 9, num add, num decimal, num divide, num enter, num lock, num multiply, num subtract, o, p, page down, page up, pause, q, r, right alt, right arrow, right ctrl, right meta, right shift, s, scroll lock, space, t, tab, u, up arrow, v, w, x, y, z

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crosspress-0.3.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crosspress-0.3.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file crosspress-0.3.0.tar.gz.

File metadata

  • Download URL: crosspress-0.3.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for crosspress-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bc6d0a3a293d33ee6f916b279a7d36a3380c84c58e44d22fb597ca008ef0594e
MD5 0ffccac5b30cf2ca0703be25ff4474e2
BLAKE2b-256 d26885dcceba32dc10acf176c502414691e3e785f24c2153c080e7e6526b193d

See more details on using hashes here.

File details

Details for the file crosspress-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: crosspress-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for crosspress-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d55e1928d304d46bf5c80b2d6f25f093ff0c4c3c02831fd0908c5d751bd4165
MD5 c19164a73afff38abf1f5caa91f6a769
BLAKE2b-256 372304437e39b24641d522d98cb8a8ad3c3fa1036868793a4348a977f89c5486

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page