Pick an option in the terminal with a simple GUI
pick is a small python library to help you create curses based interactive selection list in the terminal.
$ pip install pick
pick comes with a simple api:
>>> C++ >>> 4
pick multiselect example:
>>> [('Java', 0), ('C++', 4)]
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_selection_count: (optional) for multi select feature to dictate a minimum of selected items before continuing
screen: (optional), if you are using
pickwithin an existing curses application set this to your existing
screenobject. It is assumed this has initialised in the standard way (e.g. via
curses.noecho(); curses.cbreak(); screen.kepad(True))
pickpack: A fork of
pick to select tree data.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
pick-2.2.0.tar.gz (4.9 kB view hashes)
pick-2.2.0-py3-none-any.whl (4.9 kB view hashes)