simple and pretty tool for selecting items by keyboard in terminal
Project description
easyselect by gmanka
tool for selecting items by keyboard in terminal
navigation
- installation
- usage
- print text while choosing
- rich styles support
- long items list support
- page size
- supported buttons
installation^
pip install easyselect
usage^
from easyselect import Sel
yes_or_no = Sel(
items = [
'yes',
'no',
]
)
answer = yes_or_no.choose()
print(answer)
print text while choosing^
yes_or_no = Sel(
items = [
'yes',
'no',
],
text = 'please select yes or no'
)
rich styles support^
linux only
yes_or_no = Sel(
items = [
'yes',
'no',
],
styles = [
'green',
'red'
]
)
very long items list support^
nums = Sel(
items = list(range(50))
)
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
)
supported buttons^
user will able to use these buttons
- up, down, left, right
- w, a, s, d, j, k
- 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.12.tar.gz
(201.4 kB
view hashes)
Built Distribution
Close
Hashes for easyselect-22.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d182618ff8226314006dc4d501cf5730608d7d304f93a509370d1ec7d1f41c8 |
|
MD5 | f963a412bd90a0a4c8e0aa3f073e1ba0 |
|
BLAKE2b-256 | b59e57bfb9c361a777711dfd6fdf775e53c8b96f8e8f6c93279894ec5cfb04a8 |