cratepy.ioput.ioutilities¶
I/O utility tools.
This module includes the ‘.screen’ file path global definition as well as several useful tools associated with input/output procedures.
Functions¶
- print2(*objects)
Double output printer.
- setdisplayfeatures()
Set output display features.
- escapeANSI(string)
Remove ANSI escape sequences from string.
- checknumber(x)
Check if instance is or represents a number.
- checkposint(x)
Check if instance is a positive integer.
- checkvalidname(x)
Check if string contains only letters, numbers or underscores.
- is_between(x, lower_bound=0, upper_bound=1)
Check if numeric instance is between lower and upper values (included).
- query_yn(question, default_answer=’yes’)
Prompt the user to answer yes/no question.
Functions
|
Check if instance is or represents a number. |
|
Check if instance is a positive integer. |
Check if string contains only letters, numbers or underscores. |
|
|
Remove ANSI escape sequences from string. |
|
Check if numeric instance is between lower and upper values (included). |
|
Double output printer. |
|
Prompt the user to answer yes/no question. |
Set output display features. |
|
|
Prompt user to perform action before proceeding execution. |