docarray.document.mixins.dump module#

class docarray.document.mixins.dump.UriFileMixin[source]#

Bases: object

Provide helper functions for Document to dump content to a file.

save_uri_to_file(file)[source]#

Save uri into a file

Parameters

file (Union[str, BinaryIO]) – File or filename to which the data is saved.

Return type

T

Returns

itself after processed