{"id":8014,"library":"cli-ui","title":"CLI UI","description":"cli-ui is a Python library designed to help developers build aesthetically pleasing and user-friendly command-line interfaces. It provides tools for informative messages, error messages, progress indicators, formatting, and interactive user input (e.g., yes/no questions, choices). The current version is 0.19.0, and the project appears to be actively maintained, with recent updates and continued development on its GitHub repository.","status":"active","version":"0.19.0","language":"python","source_language":"en","source_url":"https://github.com/your-tools/python-cli-ui/","tags":["CLI","UI","terminal","console","user interface","formatting","prompts"],"install":[{"cmd":"pip install cli-ui","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[{"wrong":"import ui","symbol":"cli_ui","correct":"import cli_ui"}],"quickstart":{"code":"import ui\n\n# Informative messages\nui.info(\"This is\", ui.green, \"green\", ui.reset, \"text.\")\nui.info_2(\"Starting\", \"Process X...\")\n\n# Progress indication\nlist_of_items = [f\"Item {i}\" for i in range(1, 6)]\nfor i, item in enumerate(list_of_items):\n    ui.info_count(i, len(list_of_items), f\"Processing {item}\")\n\n# User input\nwith_confirmation = ui.ask_yes_no(\"Proceed with action?\", default=True)\nif with_confirmation:\n    fruits = [\"apple\", \"orange\", \"banana\"]\n    selected_fruit = ui.ask_choice(\"Choose a fruit\", choices=fruits)\n    ui.info(f\"You selected: {selected_fruit}\")\nelse:\n    ui.info(\"Action cancelled.\")\n","lang":"python","description":"This quickstart demonstrates common usage patterns for `cli-ui`, including printing colored messages, showing progress, and gathering user input through yes/no questions and choice selections."},"warnings":[{"fix":"Configure color output using `ui.setup(color='never')` or ensure output is directed to a TTY.","message":"When redirecting output (e.g., to a file or pipe), `cli-ui`'s colorization might still emit ANSI escape codes. This can lead to unreadable output in non-terminal environments if not handled. The library's `color` configuration can be set to 'never' to prevent this.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Consult the official documentation for `ui.setup()` to understand the exact behavior of `verbose` and `quiet` parameters and tailor them to your needs.","message":"The `cli-ui` library offers `verbose` and `quiet` configuration options. Misunderstanding their precise behavior can lead to unexpected suppression or display of messages. `quiet` typically hides all but warnings, errors, and fatal messages, while `verbose` enables debug messages.","severity":"gotcha","affected_versions":"All versions"},{"message":"There are other projects with similar names, such as the JavaScript `cliui` (yargs/cliui) and `cli2gui`. Ensure you are referring to the correct Python `cli-ui` library to avoid confusion regarding features, installation, and breaking changes.","severity":"gotcha"}],"env_vars":null,"search_vec":"'0.19.0':48 'activ':55 'aesthet':15 'appear':52 'build':14 'choic':43 'cli':1,4,67 'cli-ui':3 'command':22 'command-lin':21 'consol':70 'continu':61 'current':45 'design':10 'develop':13,62 'e.g':40 'error':31 'format':35,73 'friend':20 'github':65 'help':12 'indic':34 'inform':29 'input':39 'interact':37 'interfac':24,72 'librari':9 'line':23 'maintain':56 'messag':30,32 'pleas':16 'progress':33 'project':51 'prompt':74 'provid':26 'python':8 'question':42 'recent':58 'repositori':66 'termin':69 'tool':27 'ui':2,5,68 'updat':59 'user':19,38,71 'user-friend':18 'version':46 'yes/no':41","created_at":"2026-04-16T16:59:59.203354+00:00","updated_at":"2026-04-16T16:59:59.203354+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.19.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/cli-ui/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}