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:

[![asciicast](https://asciinema.org/a/33923.png)](https://asciinema.org/a/33923)

### 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.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pick-0.2.0-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pick-0.2.0.tar.gz
Algorithm Hash digest
SHA256 641e4390a7e11aee1a80eabf3425466d66eb3bd8a2909c987cee14f1f4ac291d
MD5 a415160796b2d613dc9fff066574b4f9
BLAKE2b-256 85d682712764849074fc3aa5461899dc5e1167685f6d99218228ad91c76ce984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pick-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7aea2c77a35020e2a66dc1a81a69687a5bf5f64aa62326991ba6bd2d1a35221d
MD5 ae2addbdd6df8fe9ea3e2424a3a3e435
BLAKE2b-256 d5976abad759721c2945769354d9ccf7cc9fba2f952e0d794d26bf0d7390b358

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