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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pick-0.3.0.tar.gz
.
File metadata
- Download URL: pick-0.3.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b97f15a271f9e1fa23741d50c0be8bcd90e166563f02a6ef1cd3217c664e1c |
|
MD5 | 36aa6b06df67bf66cef32d53883db96b |
|
BLAKE2b-256 | e1789a0f44e11d33204a87d0fce5e629f35b005fe88d3259ebfafd9242799999 |
File details
Details for the file pick-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pick-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa72809593a1cf4bd84a56187bae4033ac514c8c458d056dda9d9481d7c0d041 |
|
MD5 | 17cd33d10f403fee75128641ecf5c0c3 |
|
BLAKE2b-256 | 6f148764ac797c62418fd71777d9d2437c3c12bd18ae4437dc38edc3268af7c4 |