{"categories":[{"label":"Terminals","url":"https://skillfed.io/packages/category/terminals"}],"enrichment":{"capability":"Captures individual keypresses from terminal stdin in a platform-independent way, returning key objects with character data, Unicode code points, and printability information.","skillfed_tags":["terminal-ui","keyboard-input"],"use_cases":["Build interactive terminal menus or games that respond to single keypresses without waiting for Enter.","Implement keyboard shortcuts in CLI tools (e.g., 'q' to quit, arrow keys to navigate).","Create terminal-based input handlers that need to detect special keys like CTRL+C or function keys.","Develop cross-platform terminal applications that handle keypresses consistently on Windows, macOS, and Linux."],"what_it_does":"yakh is a minimal terminal keypress handler that reads individual key events from stdin and returns them as Key objects. It abstracts away platform differences so you can detect keypresses\u2014including special keys like CTRL combinations\u2014without managing raw terminal modes yourself. The library has no runtime dependencies and exposes a single blocking function, `get_key()`, that returns a Key instance with the pressed key's character representation, Unicode code points, and a printability flag.\n\nTypical use is in terminal user interfaces or interactive CLI tools where you need to respond to individual keypresses rather than waiting for a full line of input. The Key class is comparable to strings and Unicode tuples, making it easy to check for specific keys or key combinations. Platform-specific key constants are available through the `Keys` class for common keys like ENTER and CTRL variants.","worth_installing":"Yes, if you need simple cross-platform keypress handling in a terminal. The zero-dependency design and low install friction make it lightweight. However, maintenance is dormant\u2014last commit was 2025-01-14 with no recent releases\u2014so expect no active bug fixes or feature development. Suitable for small projects or scripts; for production systems requiring ongoing support, evaluate alternatives or plan to maintain a fork."},"id":"python-yakh","links":{"html":"https://skillfed.io/packages/python-yakh","md":"https://skillfed.io/packages/python-yakh.md","pypi":"https://pypi.org/project/python-yakh/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-14","license_spdx":null,"license_treatment":"permissive","name":"python-yakh","python_support":"supports_current","summary":"Yet Another Keypress Handler"},"popularity":{"monthly_downloads":89989,"position":13624,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.1"}
