arcaflow_plugin_sdk.serialization module

exception arcaflow_plugin_sdk.serialization.LoadFromFileException(msg: str)[source]

Bases: Exception

property msg: str
exception arcaflow_plugin_sdk.serialization.LoadFromStdinException[source]

Bases: Exception

msg: str
arcaflow_plugin_sdk.serialization.load_from_file(file_name: str) Any[source]

This function loads a YAML or JSON structure from a file.

Parameters:

file_name – File name ending in JSON or YAML.

Returns:

the decoded structure.

arcaflow_plugin_sdk.serialization.load_from_stdin(stdin: TextIOWrapper) Any[source]

This function reads from the standard input and returns a Python data structure.

Parameters:

stdin – the standard input

Returns:

the decoded structure.