https://github.com/idlesign/keybind
Description
Global key binding made easy
Requires X11 (X Window System). For UNIX-like systems, e.g. Linux.
Can be used both as a Python package and from CLI.
Features:
Create some global key bindings to your functions.
Use them in your GUI or CLI application.
Bind arbitrary program run to a key using CLI.
From Python
from keybind import KeyBinder
def do():
print('done')
# The following will start key listening loop in a thread
# (useful if you don't want to block your main program).
KeyBinder.activate({
'Ctrl-K': do,
'Shift-R': None, # Do not run anything, just intercept.
}, run_thread=True)
From CLI
; Listen to Ctrl-K, Ctrl-R and D (keycode 40).
; Provide as many -k as you want.
$ keybind -k "Ctrl-K=ls -lah" -k "Ctrl-R=python run.py somearg --someopt" -k "40=date"
; All keys interception mode. Show keycodes.
; Use wisely, keep your mouse ready.
$ keybind --sniff
Metadata
Release files for keybind 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keybind-0.3.0.tar.gz | 7.6 kB | Without provenance | Details for keybind-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keybind-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for keybind-0.3.0-py2.py3-none-any.whl |
Total release size: 14.2 kB
Release files / keybind-0.3.0.tar.gz
| Download URL | keybind-0.3.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e9c8a19d4cd1f59e4529e0d2740b207784504a779b7caac34624e3aaa23b652
|
|
BLAKE2b-256 checksum How to use checksums |
0d575f4242eaa26ba0ed9bbbac5356e583b34c2847675321f48fb6bf542f03ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / keybind-0.3.0-py2.py3-none-any.whl
| Download URL | keybind-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f3ccb1f30f9849439d77b5611973f02e3ce2d1ed138ab5efa44ed621cd009277
|
|
BLAKE2b-256 checksum How to use checksums |
9f7a601d8e316347e6be8d76ae654c7bc530dca44901191e16567841459fb71e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for keybind 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.