Skip to main content

A module that provides common functions for yes/no CLI queries

Project description

# yesno

Quite frequently I need to create simple CLI interfaces for the programs I write, every time I end up creating a different set of functions that never have a good set of satisfactory behaviours. For this reason I’m putting this project publicly, so I can use the same library for those purposes and improve it continusly.

Example:

>>> import yesno
>>> yesno.input_to_bool('Do you like pancakes', default='yes')
Do you like pancakes[yes]? no
False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

msl09_yesno-0.1.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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