Choose Options using a CLI Checkbox Menu
Project description
CHOOSE OPTIONS
A simple CLI checkbox menu interface for choosing options.
Takes a list of options as an argument and returns a list of selected items from that list.
Options are chosen by entering their corresponding number (including specifying ranges in the form 1..5 or 1-5), or using globbing to match option strings.
INSTALLATION
pip install chopt
CLI USAGE
usage: chopt [-h] options [options ...]
Create a checkbox menu from a list of options.
positional arguments:
options Options for the menu.
optional arguments:
-h, --help show this help message and exit
PYTHON USAGE
from chopt import chopt
my_list = [ 'item1', 'item2', 'item3' ]
chosen = chopt(my_list)
some_interesting_function(chosen)
EXAMPLES
chopt $(ls ~/src/chopt)
chopt $(tail -n 10 /usr/share/dict/words)
chopt options{1..12}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chopt-0.0.5.tar.gz.
File metadata
- Download URL: chopt-0.0.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44365fc623ed72cb5da2befd4288714d5cb44c57057e10509e1be5610a8f867b
|
|
| MD5 |
42d568cc3785194101bdc09d99daec51
|
|
| BLAKE2b-256 |
a7e1d81a93be137bcddb92ff3878d5cb2543803cf4cb8ee95a367bc5a80c9aa0
|
File details
Details for the file chopt-0.0.5-py3-none-any.whl.
File metadata
- Download URL: chopt-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a4311a2a213beb545e7d1a88fedfd6e21c18fb63d11956960e2e71d5b4ac37
|
|
| MD5 |
124b941e8b72a8a562ca55d671346235
|
|
| BLAKE2b-256 |
3f6565581a7b3dfe85b8f5710fed560bb6a888d0054b539fe8a7da5eb3c689cd
|