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.8.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file easyselect-22.0.8.tar.gz
.
File metadata
- Download URL: easyselect-22.0.8.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f030ffeb91709678dd3cca4e250d7c55629be771492a0a510ae71e844e34dc67 |
|
MD5 | 79b24df0649b1aa5017da9b655bf8953 |
|
BLAKE2b-256 | 1fc3ff1b3121115891ca9d100c553457ba370da4229ff8b9a10b58954c273070 |
File details
Details for the file easyselect-22.0.8-py3-none-any.whl
.
File metadata
- Download URL: easyselect-22.0.8-py3-none-any.whl
- Upload date:
- Size: 3.0 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 | 4328b5a8a9c9b875260f825aa80867d4ed2c02a91c0ddd7cd9047ebd22576939 |
|
MD5 | c465360483611b252ffad155aa33b68a |
|
BLAKE2b-256 | 5498929714889bcc4cdf1dc34742a8a2141602caced8315f8d0e707d95400bb5 |