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

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.

escapeANSI(string)

Remove ANSI escape sequences from string.

is_between(x[, lower_bound, upper_bound])

Check if numeric instance is between lower and upper values (included).

print2(*objects)

Double output printer.

query_yn(question[, default_answer])

Prompt the user to answer yes/no question.

setdisplayfeatures()

Set output display features.

useraction(message)

Prompt user to perform action before proceeding execution.