simple and pretty tool for selecting items by keyboard in terminal
Project description
easyselect by gmanka
tool for selecting items by keyboard in terminal
navigation
- installation
- usage
- print text while choosing
- rich styles support
- long items list support
- page size
- supported buttons
installation^
pip install easyselect
usage^
from easyselect import Sel
yes_or_no = Sel(
items = [
'yes',
'no',
]
)
answer = yes_or_no.choose()
print(answer)
print text while choosing^
yes_or_no = Sel(
items = [
'yes',
'no',
],
text = 'please select yes or no'
)
rich styles support^
linux only
yes_or_no = Sel(
items = [
'yes',
'no',
],
styles = [
'green',
'red'
]
)
very long items list support^
nums = Sel(
items = list(range(50))
)
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
)
supported buttons^
user will able to use these buttons
- up, down, left, right
- w, a, s, d, j, k
- 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.13.tar.gz
(201.4 kB
view details)
Built Distribution
File details
Details for the file easyselect-22.0.13.tar.gz
.
File metadata
- Download URL: easyselect-22.0.13.tar.gz
- Upload date:
- Size: 201.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3019656e934d728a65872f555fa2ba49aa636f0a03c2ae20cd902278c3d7530 |
|
MD5 | 7610eeb3fcab006ac468b588d6b5cc6f |
|
BLAKE2b-256 | d6b67ce9b5b20122189c06da5f6081b48ca2c7fe7bbc1aa9bc98b74439405a57 |
File details
Details for the file easyselect-22.0.13-py3-none-any.whl
.
File metadata
- Download URL: easyselect-22.0.13-py3-none-any.whl
- Upload date:
- Size: 3.2 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 | ee5299e060c066b912dbf0c6844e06d2aef28b314ec1945dee9a679e984f7d02 |
|
MD5 | 7c64a7ba21bc9bfbe6356a7a3eac8a14 |
|
BLAKE2b-256 | 508a18745ced3f467c23ebea90d989bd040be56f7d020cf13c0edcc2e39034ba |