cursus.mods.exe_doc.data_uploading_helper¶
Data Uploading Helper for execution document generation.
This module provides the DataUploadingHelper class that extracts execution document configurations from DataUploading step configurations.
- class DataUploadingHelper[source]¶
Bases:
ExecutionDocumentHelperHelper for extracting execution document configurations from DataUploading steps.
Unlike CradleDataLoadingHelper (which builds Coral model objects and serializes), this helper is simple: DataUploadingConfig.job_config already produces the exact dict expected by the execution document / CreateDataUploadJobRequest.
- can_handle_step(step_name, config)[source]¶
Check if this helper can handle the given step configuration.
- get_execution_step_name(step_name, config)[source]¶
Get execution document step name.
DataUploading steps don’t typically have job_type variants, so the step name is used as-is or with minor normalization.
- extract_step_config(step_name, config)[source]¶
Extract execution document configuration from DataUploading step config.
This is straightforward: DataUploadingConfig.job_config already assembles the exact dict needed for the execution document (matches the sample_config format expected by DataUploadProcessor’s JSON Schema validation).
- Parameters:
step_name (str) – Name of the step
config – DataUploading configuration object
- Returns:
Dictionary containing the execution document configuration
- Raises:
ExecutionDocumentGenerationError – If configuration extraction fails
- Return type: