load_all

astropy.io.misc.yaml.load_all(stream)[source] [edit on github]

Parse the all YAML documents in a stream using the AstropyLoader class and produce the corresponding Python object.

Parameters:
stream : str or file-like object

YAML input

Returns:
obj : object

Object corresponding to YAML document