weldx.asdf.util#

Utilities for asdf files.

Functions

dataclass_serialization_class

Generate a asdf serialization class for a python dataclass.

get_converter_for_tag

Get the converter class that handles a given tag.

get_highest_tag_version

Get the highest available weldx extension tag version matching a pattern.

get_schema_path

Get the path to a weldx schema file.

get_schema_tree

Get a dictionary representation of a weldx schema file with custom formatting.

get_weldx_extension

Grab the weldx extension from list of current active extensions.

get_yaml_header

Read the YAML header part (excluding binary sections) of an ASDF file.

notebook_fileprinter

Print the code from file/BytesIO to notebook cell with syntax highlighting.

read_buffer

Read ASDF file contents from buffer instance.

read_buffer_context

Contextmanager to read ASDF file contents from buffer instance.

uri_match

Returns True if the ASDF URI matches any of the listed patterns.

view_tree

Display YAML header using IPython JSON display repr.

write_buffer

Write ASDF file into buffer.

write_read_buffer

Perform a buffered write/read roundtrip of a tree using default ASDF settings.

write_read_buffer_context

Context manager to perform a buffered write/read roundtrip of a tree using default ASDF settings.