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.7.tar.gz
(20.5 MB
view hashes)
Built Distribution
Close
Hashes for easyselect-22.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058f7cdbbcb45267da4c0f43fe48e65c46259d1e9622d9bbb536d6ff10a2fefd |
|
MD5 | 2f1305e060d0ed9fa4a1e2ea3b2986ab |
|
BLAKE2b-256 | de58c99583467468cf3ce57bcf200841f28ec6fcc2f88dc14b57d027ac1c3ac4 |