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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keyengine-1.0.1.tar.gz.
File metadata
- Download URL: keyengine-1.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be131d859e56197d33e34998aadbb6b0ba76e0cef397ca930dc15d27973c6458
|
|
| MD5 |
ad9a1be709c55b50570d165174333915
|
|
| BLAKE2b-256 |
12df450e66d50c9e69c2b61a80a633ac2051b8737f64d7c12015d7899d4312c4
|
File details
Details for the file keyengine-1.0.1-py3-none-any.whl.
File metadata
- Download URL: keyengine-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f619fbe8eae399a6f13a313d07ee48750091421072dd2c1a6c58e7fabb3beab4
|
|
| MD5 |
d487209f92bf782796bf89c25e391706
|
|
| BLAKE2b-256 |
6d0706971b8f3a3706c6efe30adff1ac5626356a000b5d300b9ca691432ea32d
|