load

astropy.io.misc.yaml.load(stream)[source]

Parse the first YAML document in a stream using the AstropyLoader and produce the corresponding Python object.

Parameters:
streampython:str or python:file-like object

YAML input

Returns:
objobject

Object corresponding to YAML document