Query

from fluiddyn.io.query import query, query_number, query_yes_no
query_yes_no('Would you like to continue?')
Would you like to continue? [Y/n]
True
query_yes_no('Would you like to continue?', default='no')
Would you like to continue? [y/N]
False
query_yes_no('Would you like to continue?')
Would you like to continue? [Y/n]
True
query_yes_no('Would you like to continue?')
Would you like to continue? [Y/n] Please respond with 'yes' or 'no' (or 'y' or 'n').
Would you like to continue? [Y/n]
False
query_number('Which number do you like?')
Which number do you like?
1.2
query('Hello, what is your name?')
Hello, what is your name?
'Boule'