cratepy.ioput.ioutilities.checkvalidname

checkvalidname(x)[source]

Check if string contains only letters, numbers or underscores.

Parameters:

x (str) – String.

Returns:

is_validTrue if x contains only letters, numbers or underscores, False otherwise.

Return type:

bool