is_yaml#

pyCGM2.Utils.files.is_yaml(s)#

Check if a string is valid YAML.

Parameters:

s (str) – The string to check.

Returns:

bool – True if the string is valid YAML, False otherwise.