Skip to main content

pick an option in the terminal with a simple GUI

Project description

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

![Demo](example/basic.gif?raw=true)

### 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pick-0.3.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pick-0.3.1-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pick-0.3.1.tar.gz.

File metadata

  • Download URL: pick-0.3.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pick-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9686bc9b151306bfd675525b85e46744abe3289992121aea1cf9a3cf547c423b
MD5 d2992e1bece8c446c900c9fdf18aa23e
BLAKE2b-256 9c4c6eda082d2b8a3e910fdc23865e9a6f72e8689f9db372812d6efad10ac718

See more details on using hashes here.

File details

Details for the file pick-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pick-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eef571ee50827b534e5bc6dd8ae80a934520c1b881370143347343d8feb0265a
MD5 d4b69b344eaccef293ced684ea4d5d99
BLAKE2b-256 6df7633dcdc38a65fbf9845f27e273f389cdb8c23ac44d22eed562868a8db2a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page