🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

keyengine

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keyengine

A quick way to make interactive console interfaces that automatically listen to keyboard inputs.

1.0.0
PyPI
Maintainers
1

keyengine

Introduction

Keyengine is a small package made for simple Console interfaces. Keyengine can be used for:

  • Interactive menus
  • Printing and waiting for input simultaneously
  • Checking what letter is currently pressed, for easier creation of your own systems

Installation

Python >=3.13

If you have Python 3.13 or newer, please just run pip install -U keyengine

Python >=3.10

If you have Python 3.10 or newer, please just run pip install -U deprecated keyengine

Usage

menus

menu(choices: list[str], index: bool = True)
Takes a list of possible choices and lets the user pick one using the arrow and ENTER keys. Returns the index of the chosen item in the list.

├─ choices: A list of possible choices
├─ index: Whether to display an index (i + 1)

console

Console()
A good way to display text while also waiting for input simultaneously. Methods are self-explanatory.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts