save method

save

Saves the resource to the provided stream.

Returns

This resource so that you can chain calls.

def save(self, stream, context):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe stream in which the resource will be saved.
contextResourceHandlingContextResource handling context.

Exceptions

ExceptionDescription
InvalidOperationExceptionRaised if Resource.output_url is . Resource.output_url should be specified before saving the resource because otherwise it is impossible to specify the correct reference in the resources referencing this one.

See Also