simple and pretty tool for selecting items by keyboard in terminal
Project description
easyselect by gmanka
simple and pretty tool for selecting items by keyboard in terminal
navigation
installation^
pip install easyselect
usage^
from easyselect import Sel
yes_or_no = Sel(
items = [
'yes',
'no',
]
)
answer = yes_or_no.choose()
print(answer)
rich styles support^
yes_or_no = Sel(
items = [
'yes',
'no',
],
styles = [
'green',
'red'
]
)
long items list support^
nums = Sel(
items = list(range(50))
)
answer = nums.choose()
print(answer)
page size^
page_size arg allows to specify how much lines will be rendered on screen default value is 15
nums = Sel(
items = list(range(50)),
page_size = 3
)
answer = nums.choose()
print(answer)
supported buttons^
- up, down, left, right
- w, a, s, d
- home, end
- page up, page down
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
easyselect-22.0.11.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file easyselect-22.0.11.tar.gz
.
File metadata
- Download URL: easyselect-22.0.11.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350b6014ab2ae97731e492c31f9cfb6d9775df6b6c5ad009df4db4934c2e447d |
|
MD5 | 582141018b8414b17bd70b57af0f074e |
|
BLAKE2b-256 | 28fc920620abe495b0dfe584ef99855d921ed47d53ca0003b4b1aeea57e9d1eb |
File details
Details for the file easyselect-22.0.11-py3-none-any.whl
.
File metadata
- Download URL: easyselect-22.0.11-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e2f2b4c88c3b84445a76c82c99532d1d222a607c5ecd53f43e1f79c2ef3b855 |
|
MD5 | 945f29f8a3e933a4d83d3fa1cdc08ead |
|
BLAKE2b-256 | 54fb29ffebcad9fe0502edb78586a93dbc8286b4180797c1b47f112761da7d6b |