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.6.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for easyselect-22.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e4092f853e6aaa59ac4a5b5aebbc664c20d9c54429fea3615f14324ffc7424 |
|
MD5 | 9caeb713dec49f68e224bfb287a9535f |
|
BLAKE2b-256 | cd99dda2d022980a5376b746af36394475f84b30c069d90fe1362c5ce9a114fe |