bi_etl.utility.ask module

Created on Mar 13, 2014

@author: Derek Wood

bi_etl.utility.ask.multi_choice_question(question, choices, default=None)[source]
bi_etl.utility.ask.yes_no(question: str, default: str = 'yes')[source]

Ask a yes/no question via raw_input() and return their answer.

Parameters:
  • question – String that is presented to the user.

  • default – The presumed answer if the user just hits <Enter>. It must be “yes” (the default), “no” or None (meaning an answer is required of the user).

  • "no". (The _sphinx_paramlinks_bi_etl.utility.ask.yes_no."answer" return value is one of "yes" or) –