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)
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.4.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for easyselect-22.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a4dc93ec7119603c4ba7806e1e9b3efed9047521d3d45f680d1daa8590de24 |
|
MD5 | 63082a360d093f2a8d7e4d1988fd18ba |
|
BLAKE2b-256 | 64bde76b1e733e59accd96934faf9ec4422a97628a257e7a9d3f4513a464e129 |