Skip to main content

easyselect by gmanka

a useful library that allows the user to select between multiple items in the console using the keyboard. Supports very long lists that don't fit on the screen, rich styles, control with buttons up, down, left, right, wasd, j, h, home, end, page up, page down

navigation

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'
    ]
)

rich styles documentation

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

changelog^

you can read changelog here

license^

gnu gpl 3

Release files for easyselect 23.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easyselect 23.0.0
File Size Uploaded
easyselect-23.0.0.tar.gz 201.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easyselect 23.0.0
File Interpreter ABI Platform
easyselect-23.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 205.3 kB

Release files / easyselect-23.0.0.tar.gz

Download URL easyselect-23.0.0.tar.gz
Size 201.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7d2ce1d96b6d04260cf47f2c0696a43e6add6eea1013a4a48bd345d17ef2044
BLAKE2b-256 checksum
How to use checksums
627378173fe0679df7ce85900a8e44ed332a9338fcd96fcb707e46bd3e96119d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / easyselect-23.0.0-py3-none-any.whl

Download URL easyselect-23.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53abef2fa7ae60c81cc02530d22eae05337f3a2098a4f266cb1eeaceedc9ebe1
BLAKE2b-256 checksum
How to use checksums
b9a5e0df3321144d02592b5d4741693cf874215d179e6749c5189259ecd5e26a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

23.0.0 This release

2 release files

22.0.9

2 release files

22.0.8

2 release files

22.0.7

2 release files

22.0.6

2 release files

22.0.5

2 release files

22.0.4

2 release files

22.0.3

2 release files

22.0.2

2 release files

22.0.1

2 release files

22.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page