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.9.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file easyselect-22.0.9.tar.gz
.
File metadata
- Download URL: easyselect-22.0.9.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 | 8c2c5f02912aaff1834adb5f7e973d880e4d5377d176b8c626fcbdab24a3ebbb |
|
MD5 | dab9c04bedef92283ef662271281cc2c |
|
BLAKE2b-256 | 673411cd7479c310d135c9156e9b0bb0281c67308b6466aaf2017f64e9880919 |
File details
Details for the file easyselect-22.0.9-py3-none-any.whl
.
File metadata
- Download URL: easyselect-22.0.9-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 | d46ad5c46c6736abd11417d06f4f6dfc71de99b8ce95309649186aaec31a37c5 |
|
MD5 | 802688d725cb310714532a5b9dd5b924 |
|
BLAKE2b-256 | cb4c78d80e6d7237214d8b8517f90174fb6d1b81fbb878f1d3017ac12674755c |