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

Uploaded Python 3

File details

Details for the file msl09_yesno-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: msl09_yesno-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for msl09_yesno-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 245ea98d27ab0391565e57fa27665bd9d94315bb656dcc07c54739b2ce9f0ee1
MD5 636440ab0a819ab62748b05f197501d5
BLAKE2b-256 734be01bef40640e920407d875c088702536b61d903e05bd14dfd9c490a1dd2c

See more details on using hashes here.

Provenance

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