readyaml#

readyaml(string, **kwargs)[source]#

Read YAML from a string

Alias to sc.loadyaml(string=...).

Parameters:

See also sc.loadyaml() for loading a YAML from a file.

Example:

string = '{"this":1, "is":2, "a":3, "YAML":4} # YAML allows comments!'
yaml = sc.readyaml(string)

New in version 3.0.0.