> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/datadesigner/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/datadesigner/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/datadesigner/_mcp/server.

# data\_designer.config.exportable\_config

## Module Contents

### Classes

| Name                                                                                | Description                                                        |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [`ExportableConfigBase`](#data_designerconfigexportable_configexportableconfigbase) | !!! abstract "Usage Documentation" [Models](../concepts/models.md) |

### API

```python
class data_designer.config.exportable_config.ExportableConfigBase(
    /,
    **data: typing.Any
)
```

**Bases**: `data_designer.config.base.ConfigBase`

```python
to_dict() -> dict[str, typing.Any]
```

Convert the configuration to a dictionary.

**Returns:**

`dict[str, typing.Any]`

A dictionary representation of the configuration using JSON-compatible
serialization.

```python
to_yaml(
    path: str | pathlib.Path | None = None,
    *,
    indent: int | None = 2,
    **kwargs
) -> str | None
```

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).

```python
to_json(
    path: str | pathlib.Path | None = None,
    *,
    indent: int | None = 2,
    **kwargs
) -> str | None
```

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).