export

imerit_ango.sdk.SDK.

export(project_id, options, zip_file_path)

Export data from your project.

Parameters

  • project_id: string

  • options: ExportOptions, default ExportOptions()

    • An instance of the ExportOptions class, which defines the configurations for the export operation.

    • ExportOptions class

      • stage: List[str], default ['Complete']

        • A list of stage IDs to include in the export. Use the get_project function to retrieve IDs.

        • Example: ["Complete", "a0000b0a-1111-0a00-a1a1-a111111111aa"]

        • Note: Use an empty list to get all stages such as stage = []

        • Warning: The IDs of the Complete, Start and initial Label stages are identical to their names: "Complete", "Start" and "Label", respectively.

      • batches: List[str], default None

        • Filter export by specific batch IDs. Use the get_batches function to retrieve IDs.

      • task_type: TaskTypes, default None

        • Type of the exported data.

        • Options:

          • TaskTypes.BENCHMARK

          • TaskTypes.CONSENSUS

          • TaskTypes.DEFAULT

      from imerit_ango.models.enums import TaskTypes
      • export_format: ExportFormats, default ExportFormats.JSON

        • The format used for the exported output data.

        • Options:

          • ExportFormats.JSON

          • ExportFormats.NDJSON

      from imerit_ango.models.enums import ExportFormats
      • export_type: ExportTypes, default ExportTypes.TASK

        • Type of export.

        • Options:

          • ExportTypes.TASK

          • ExportTypes.ISSUE

      from imerit_ango.models.enums import ExportTypes
      • include_key_frames_only: bool, default False

        • If True, only exports key frames (for video assets).

      • send_email: bool, default False

        • If True, sends a notification email when export completes.

      • include_metadata: bool, default True

        • If True, includes metadata with assets.

      • include_history: bool, default True

        • If True, includes annotation history.

      • notify: bool, default False

        • If False, suppresses system notifications.

      • updated_at: TimeFilter, default None

        • Filter assets by update timestamp. Updated At attribute displays the date and time when the task was last updated, this includes the most recent submission, save, or skip.

      • created_at: TimeFilter, default None

        • Filter assets by creation timestamp. Created At attribute shows the date and time when the asset was imported into Ango Hub.

    from imerit_ango.models.export_options import ExportOptions
    • TimeFilter class

      • from_date: datetime, default None

        • Start date for filtering.

      • to_date: datetime, default None

        • End date for filtering.

    from imerit_ango.models.export_options import TimeFilter
  • zip_file_path: string, optional, default None

    • If specified, exports are downloaded directly as a .zip file instead of being returned as a Python object. This avoids server-side unzipping and speeds up export.

    • Example: "/Users/username/Downloads/my_export.zip"

Returns:

  • output: list

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

Large export operations may require significant processing time depending on project size, annotation density, and export configuration.

Using filters such as batches or stages can significantly improve export performance.

Example

Export all assets in the Complete stage:

Export assets filtered by created and updated time:

Export assets in NDJSON format:

Export benchmark tasks:

Last updated