{"library":"python-yakh","title":"Yet Another Keypress Handler","description":"A cross-platform library for handling keypress events in the terminal. Supports both Unix and Windows systems. Current version: 0.4.1. Release cadence: irregular.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python-yakh"],"cli":null},"imports":["from yakh import KeypressHandler","from yakh import keys"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from yakh import KeypressHandler\n\ndef on_key(key):\n    print(f\"Pressed: {key}\")\n\nhandler = KeypressHandler()\nhandler.key_pressed += on_key\nhandler.start()\nimport time\ntime.sleep(5)\nhandler.stop()","lang":"python","description":"Simple example: listen for keypresses for 5 seconds and print each key.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}