TOSCAImporter.from_data#

TOSCAImporter.from_data(data, *, kind=None, context=None)[source]

Convert TOSCA data into an ECLYPSE graph.

Parameters:
  • data (dict[str, Any]) – TOSCA Simple Profile YAML-compatible data.

  • kind (GraphKind | None) – Optional graph kind requested by the caller.

  • context (IOContext | None) – Optional import/export customisation.

Returns:

The imported graph.

Return type:

AssetGraph

Raises:

ValueError – If the requested graph kind conflicts with TOSCA metadata.