aisk/pick
aisk/pick has 796 GitHub stars and 68 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 05:24 UTC. Last push 2026-10-13.
create curses based interactive selection list in the terminal
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalpick
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 fromtitle: (optional) a title above options listindicator: (optional) custom the selection indicator, defaults to*default_index: (optional) set this if the default selected option is not the first onemultiselect: (optional), if set to True its possible to select multiple items by hitting SPACEmin_selection_count: (optional) for multi select feature to dictate a minimum of selected items before continuingscreen: (optional), if you are usingpickwithin an existing curses application set this to your existingscreenobject. It is assumed this has initialised in the standard way (e.g. viacurses.wrapper(), orcurses.noecho(); curses.cbreak(); screen.kepad(True))position: (optional), if you are usingpickwithin an existing curses application use this to set the first position to write to. e.g.,position=pick.Position(y=1, x=1)quit_keys: (optional), if you want to quit early, you can pass a key codes. If the corresponding key are pressed, it will quit the menu.backend: (optional), the rendering backend to use. Accepts"curses"(default),"blessed"(requirespip install pick[blessed]), or a customBackendinstance.
Community Projects
pickpack: A fork of pick to select tree data.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,306 starspublic-apis/public-apis
A collective list of free APIs
497,555 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
446,374 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,246 stars
