{"repo":"aisk/pick","free":true,"listed":false,"github":"https://github.com/aisk/pick","clone":"git clone https://github.com/aisk/pick.git","description":"create curses based interactive selection list in the terminal","language":"Python","stars":792,"topics":["curses","terminal","cli","python"],"license":"MIT","category":"cli-tools","readme_excerpt":"pick pick is a small python library to help you create interactive selection list in the terminal. Basic Multiselect :--------------------: :--------------------------: Installation $ pip install pick Optional: blessed backend pick uses the curses backend by default. If you prefer using blessed , install the optional extra: $ pip install \"pick[blessed]\" Then pass backend=\"blessed\" to pick(...) . Usage pick comes with a simple api: import pick # You can also use from pick import pick if you do not want to use cadule's magic: https://github.com/aisk/cadule title = 'Please choose your favorite programming language: ' options = ['Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell'] option, index = pick(options, title) print(option) print(index) outputs : C++ 4 pick multiselect example: from pick import pick title = 'Please choose your favorite programming language (press SPACE to mark, ENTER to continue): ' options = ['Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell'] selected = pick(options, title, multiselect=True, min selection count=1) print(selected) outputs : [('Java', 0), ('C++', 4)] Options - options : a list of options to choose from - title : (optional) a title above options list - indicator : (optional) custom the selection indicator, defaults to - default index : (optional) set this if the default selected option is not the first one - multiselect : (optional), if set to True its possible to select multiple items by hitting SPACE - min sel","default_branch":null,"files":null,"tree":[],"storefront":"/r/aisk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aisk/pick/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}