# base_exporter

Python API: `luxonis_ml.data.exporters.base_exporter`

## Classes

### BaseExporter

Base class for dataset exporters.

#### Methods

##### init

```python
def __init__(dataset_identifier: str, output_path: Path, max_partition_size_gb: float | None):
```

##### export

```python
def export(prepared_ldf: PreparedLDF):
```

Convert the prepared dataset into the exporter's format.

Parameters

 * `prepared_ldf` (`PreparedLDF`): Dataset data prepared for export.

Raises

 * `NotImplementedError`: Always raised by the abstract base implementation.

##### supported_ann_types

```python
def supported_ann_types(self) -> list[str]:
```

Return task types supported by this exporter.

Returns

 * `list[str]`: Supported annotation task types.

Raises

 * `NotImplementedError`: Always raised by the abstract base implementation.

#### Attributes

##### current_size

Current partition size in bytes.

##### dataset_identifier

Name or identifier used for exported paths.

##### image_indices

Per-image export indices used by concrete exporters.

##### max_partition_size

Optional maximum partition size in bytes.

##### max_partition_size_gb

Optional maximum partition size in GiB.

##### output_path

Directory where the export is written.

##### part

Current partition index, or `None` when partitioning is disabled.
