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)

supported buttons^

  • up, down, left, right
  • w, a, s, d
  • home, end
  • page up, page down

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.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

easyselect-22.0.6-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for easyselect-22.0.6.tar.gz
Algorithm Hash digest
SHA256 5eade23773f2c19948fbb8bbc7734a8f59e203792521bf4cca95983d040f6930
MD5 abec342a1aab9a2a22b9f68e1ed75bb7
BLAKE2b-256 6d317b4eb2244e1a0363ac5e2ab89d3265ab113aa9441f5cd0455f08a9812984

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for easyselect-22.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 98e4092f853e6aaa59ac4a5b5aebbc664c20d9c54429fea3615f14324ffc7424
MD5 9caeb713dec49f68e224bfb287a9535f
BLAKE2b-256 cd99dda2d022980a5376b746af36394475f84b30c069d90fe1362c5ce9a114fe

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