Quo

Quo is a Python based toolkit for writing Command-Line Interface(CLI) applications. Quo improves programmer’s productivity because it’s easy to use and supports auto completion which means less time will be spent debugging. Simple to code, easy to learn, and does not come with needless baggage

Quo requires Python 3.6 or later.

Installation

You can install quo via the Python Package Index (PyPI)

$ pip install -U quo

Example 1

import quo
quo.echo('Hello, World!')

Example 2

import quo
quo.flair(f'Hello, World!', foreground="red", bold=True)

Example 3

import quo
@quo.command()
@quo.option("--name", prompt="What is your name?:")
def hello(name):
quo.echo(f'Hello {name}!')
if __name__ == '__main__':
    hello()

Example 4

import quo
@quo.command()
@quo.option("--count", default=1, help="The number of times the feedback is printed.")
@quo.option("--name", prompt="What is your name", help="This prompts the user to input their name.")
@quo.option("--profession", prompt="What is your profession", help="This prompts user to input their proffession")
def survey(count, name, proffession):

    for _ in range(count):
        quo.echo(f"Thank you for your time, {name}!")

if __name__ == '__main__':
    survey

GitHub

https://github.com/secretum-inc/quo

Source: https://pythonawesome.com/a-python-based-toolkit-for-creating-command-line-interface-app/