{"repo":"boppreh/keyboard","free":true,"listed":false,"github":"https://github.com/boppreh/keyboard","clone":"git clone https://github.com/boppreh/keyboard.git","description":"Hook and simulate global keyboard events on Windows and Linux.","language":"Python","stars":3961,"topics":["python","keyboard-events","keyboard-hooks","keyboard-state","hotkey","register-hotkey","scancode","callback"],"license":"MIT","category":"dev-tools","readme_excerpt":"This project is currently unmaintained. It works for many cases, and I wish to pick it up again in the future, but you might encounter some friction and limited features using it. --- --- keyboard ======== Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses and much more. Features - Global event hook on all keyboards (captures keys regardless of focus). - Listen and send keyboard events. - Works with Windows and Linux (requires sudo), with experimental OS X support (thanks @glitchassassin!). - Pure Python , no C modules to be compiled. - Zero dependencies . Trivial to install and deploy, just copy the files. - Python 2 and 3 . - Complex hotkey support (e.g. ctrl+shift+m, ctrl+space ) with controllable timeout. - Includes high level API (e.g. record and play, add abbreviation). - Maps keys as they actually are in your layout, with full internationalization support (e.g. Ctrl+ç ). - Events automatically captured in separate thread, doesn't block main program. - Tested and documented. - Doesn't break accented dead keys (I'm looking at you, pyHook). - Mouse support available via project mouse ( pip install mouse ). Usage Install the PyPI package: pip install keyboard or clone the repository (no installation required, source files are sufficient): git clone https://github.com/boppreh/keyboard or download and extract the zip into your project folder. Then check the API docs below to see what features are avai","default_branch":null,"files":null,"tree":[],"storefront":"/r/boppreh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/boppreh/keyboard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}