data_designer.config.exportable_config
data_designer.config.exportable_config
data_designer.config.exportable_config
Bases: data_designer.config.base.ConfigBase
Convert the configuration to a dictionary.
Returns:
dict[str, typing.Any]
A dictionary representation of the configuration using JSON-compatible serialization.
Convert the configuration to a YAML string or file.
Parameters:
Optional file path to write the YAML to. If None, returns the YAML string instead of writing to file.
Number of spaces for YAML indentation. Defaults to 2.
Additional keyword arguments passed to yaml.dump().
Returns:
str | None
The YAML string if path is None, otherwise None (file is written).
Convert the configuration to a JSON string or file.
Parameters:
Optional file path to write the JSON to. If None, returns the JSON string instead of writing to file.
Number of spaces for JSON indentation. Defaults to 2.
Additional keyword arguments passed to json.dumps().
Returns:
str | None
The JSON string if path is None, otherwise None (file is written).