8000 GitHub - lepy/pick: create curses based interactive selection list in the terminal
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lepy/pick

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pick

pick is a small python library to help you create curses based interactive selection list in the terminal. See it in action:

Demo

Installation

$ pip install pick

Usage

pick comes with a simple api:

>>> from pick import pick

>>> title = 'Please choose your favorite programming language: '
>>> options = ['Java', 'JavaScript', 'Python', 'PHP', 'C++', 'Erlang', 'Haskell']
>>> option, index = pick(options, title)

Options

  • options: a list of options to choose from
  • title: (optional) a title above options list
  • indicator: (optional) custom the selection indicator
  • default_index: (optional) set this if the default selected option is not the first one

About

create curses based interactive selection list in the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0