raillabel_providerkit.export package

Submodules

raillabel_providerkit.export.export_scenes module

Module for exporting scenes to different formats.

raillabel_providerkit.export.export_scenes.export_scenes(input_folder: Path, output_folder: Path, formats: list[Literal['json', 'csv']] | None = None, quiet: bool = False) dict[str, int]

Export multiple scenes from a folder to different formats.

Parameters:
  • input_folder (Path) – Folder containing scene JSON files to export

  • output_folder (Path) – Folder where exported files will be saved

  • formats (list[ExportFormat] | None, optional) – List of formats to export to. Can contain ‘json’, ‘csv’, or both. If None, defaults to [‘json’].

  • quiet (bool, optional) – If True, disables progress bars. Default is False.

Returns:

Dictionary with export statistics: - ‘total’: Total number of scenes found - ‘exported’: Number of successfully exported scenes - ‘errors’: Number of scenes that failed to export

Return type:

dict[str, int]

Raises:

Module contents

Export functionality for raillabel scenes.

raillabel_providerkit.export.export_scenes(input_folder: Path, output_folder: Path, formats: list[Literal['json', 'csv']] | None = None, quiet: bool = False) dict[str, int]

Export multiple scenes from a folder to different formats.

Parameters:
  • input_folder (Path) – Folder containing scene JSON files to export

  • output_folder (Path) – Folder where exported files will be saved

  • formats (list[ExportFormat] | None, optional) – List of formats to export to. Can contain ‘json’, ‘csv’, or both. If None, defaults to [‘json’].

  • quiet (bool, optional) – If True, disables progress bars. Default is False.

Returns:

Dictionary with export statistics: - ‘total’: Total number of scenes found - ‘exported’: Number of successfully exported scenes - ‘errors’: Number of scenes that failed to export

Return type:

dict[str, int]

Raises: