ComponentData
The ComponentData
class is used to initialize a Check
instance with component metadata from different sources. It provides methods to load data from JSON objects or files.
Constructor
data (dict): A dictionary containing component metadata
Class Methods
from_json
Creates a ComponentData
instance from a JSON object.
json_data (dict): A dictionary containing component metadata
Returns: A new
ComponentData
instance
Example:
from_file
Creates a ComponentData
instance from a JSON file.
file_path (str): Path to a JSON file containing component metadata
Returns: A new
ComponentData
instance
Example:
Last updated