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
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
pick-0.3.1.tar.gz
(3.3 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9686bc9b151306bfd675525b85e46744abe3289992121aea1cf9a3cf547c423b |
|
MD5 | d2992e1bece8c446c900c9fdf18aa23e |
|
BLAKE2b-256 | 9c4c6eda082d2b8a3e910fdc23865e9a6f72e8689f9db372812d6efad10ac718 |
File details
Details for the file pick-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pick-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef571ee50827b534e5bc6dd8ae80a934520c1b881370143347343d8feb0265a |
|
MD5 | d4b69b344eaccef293ced684ea4d5d99 |
|
BLAKE2b-256 | 6df7633dcdc38a65fbf9845f27e273f389cdb8c23ac44d22eed562868a8db2a8 |