Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keyengine-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keyengine-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file keyengine-1.0.0.tar.gz.

File metadata

  • Download URL: keyengine-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/11

File hashes

Hashes for keyengine-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eb48a268401416467f05c0c57c5d0c3e088810d3bbb1c2b200bea30145d6e1d3
MD5 f0b2e98b022337009dc475e6416daccc
BLAKE2b-256 b6fb48620bad30b3c3ae31ee8ad8e3affbe80f8cef33c148170311b24c917188

See more details on using hashes here.

File details

Details for the file keyengine-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: keyengine-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/11

File hashes

Hashes for keyengine-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c1ce9b769c8cbaaa649ab4cf5d06adf49b48ae562a0e16db9b5909e3eda2b9
MD5 7b8d356f8c3dd32287bfc2df2592c40b
BLAKE2b-256 52c256b51892627952a63e22b4e0ab1db85916903d6d8843684776bf853412de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page