Skip to main content

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

documentation

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


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 details)

Uploaded Source

Built Distribution

easyselect-22.0.4-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file easyselect-22.0.4.tar.gz.

File metadata

  • Download URL: easyselect-22.0.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for easyselect-22.0.4.tar.gz
Algorithm Hash digest
SHA256 c842a8dac4896bc0f96698478196fad3b2e4d39b7ddc26a23068c30bfad5a3c1
MD5 26c1465cbb43648b12c243cac8676e61
BLAKE2b-256 ebcb8fef47bcae9e3086030ea8c89288c30b839baad08cfa3254243528556030

See more details on using hashes here.

File details

Details for the file easyselect-22.0.4-py3-none-any.whl.

File metadata

  • Download URL: easyselect-22.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for easyselect-22.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a4dc93ec7119603c4ba7806e1e9b3efed9047521d3d45f680d1daa8590de24
MD5 63082a360d093f2a8d7e4d1988fd18ba
BLAKE2b-256 64bde76b1e733e59accd96934faf9ec4422a97628a257e7a9d3f4513a464e129

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page