weldx.util.external_file.ExternalFile#

class weldx.util.external_file.ExternalFile(path=None, filename=None, suffix=None, mimetype=None, directory=None, hostname=None, created=None, modified=None, size=None, hashing_algorithm='SHA-256', hash=None, asdf_save_content=False, buffer=None)#

Handles the asdf serialization of external files.

Methods

calculate_hash

Calculate the hash of a file.

get_file_content

Get the contained bytes of the file.

write_to

Write the file to the specified destination.

Attributes

asdf_save_content

buffer

created

directory

filename

hash

hash_mapping

hashing_algorithm

hostname

mimetype

modified

path

size

suffix