MultiChoiceLib
MultiChoiceLib is a one-day project, meaning that it was literally written in a day. As you can imagine, it has not extensively been tested for bugs, and it does not work at all on machines which cannot run bash.
Usage:
from multichoicelib import MultiChoice
query = MultiChoice("Pick one:", ["apples", "cherries"])
.wAccentColor("\033[33m")
.wQuestionPrefix("\033[4m")
.wAnswerPrefix("] ", True)
.wSelectedPrefix(") ", True)
.addOption("oranges")()
print(query.index, query.value)
Result:
Warp terminal with Grafbase theme