Skip to main content

No project description provided

Project description

from input_picker import pick_bool, pick_item, Stop, Help

try:
    value = pick_bool()
except Help: # when user pick the help
    print_your_help()
except Stop: # when user pick the stop
    stop_your_app()

Tips: you can handle Stop on root:

if __name__ == '__main__':
    try:
        main()
    except Stop:
        print('User stop application.')

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

input_picker-0.1.2.0.tar.gz (3.8 kB view hashes)

Uploaded source

Built Distribution

input_picker-0.1.2.0-py3.6.egg (11.4 kB view hashes)

Uploaded 3 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page