skip to navigation
skip to content

python-cli-ui 0.6.1

Build Nice User Interfaces In The Terminal

Tools for nice user interfaces in the terminal.


See python-cli-ui documentation.


Watch the asciinema recording.


$ pip install python-cli-ui


import ui

# coloring:"This is",, "red",
        ui.reset, "and this is", ui.bold, "bold")

# enumerating:
list_of_things = ["foo", "bar", "baz"]
for i, thing in enumerate(list_of_things):
    ui.info_count(i, len(list_of_things), thing)

# progress indication:
ui.info_progress("Done",  5, 20)
ui.info_progress("Done", 10, 20)
ui.info_progress("Done", 20, 20)

# reading user input:
with_sugar = ui.ask_yes_no("With sugar?", default=False)

fruits = ["apple", "orange", "banana"]
selected_fruit = ui.ask_choice("Choose a fruit", fruits)

#  ... and more!
File Type Py Version Uploaded on Size
python-cli-ui-0.6.1.tar.gz (md5) Source 2017-12-07 10KB
python_cli_ui-0.6.1-py3-none-any.whl (md5) Python Wheel py3 2017-12-07 11KB