- Notifications
You must be signed in to change notification settings - Fork16
Tools for better command line interfaces
License
your-tools/python-cli-ui
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tools for nice user interfaces in the terminal.
This project was originally hosted on theTankerHQ organization, which was my employer from 2016to 2021. They kindly agreed to give back ownership of this project tome. Thanks!
Seepython-cli-ui documentation.
Watch theasciinema recording.
$pip install cli-uiExample:
importcli_ui# coloring:cli_ui.info("This is",cli_ui.red,"red",cli_ui.reset,"and this is",cli_ui.bold,"bold")# enumerating:list_of_things= ["foo","bar","baz"]fori,thinginenumerate(list_of_things):cli_ui.info_count(i,len(list_of_things),thing)# progress indication:cli_ui.info_progress("Done",5,20)cli_ui.info_progress("Done",10,20)cli_ui.info_progress("Done",20,20)# reading user input:with_sugar=cli_ui.ask_yes_no("With sugar?",default=False)fruits= ["apple","orange","banana"]selected_fruit=cli_ui.ask_choice("Choose a fruit",choices=fruits)# ... and more!
We useoptimistic merging so you don't have to worry too much about formatting the code, pleasing the linters or making sure all the test pass.
That being said, if you want, you can installjust and use it to check your changes automatically. Just runjust to see available tasks.
- Create a token on pypi : seepypi help for details.
- Installtbump and use it to bump cli-ui to the new version.
Run:
just deploy-doc
About
Tools for better command line interfaces
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.