cursus.step_catalog.adapters.legacy_wrappers

Legacy wrapper adapters for backward compatibility.

This module provides legacy wrapper classes and functions that maintain existing APIs during the migration from legacy discovery systems to the unified StepCatalog system.

class LegacyDiscoveryWrapper(workspace_root)[source]

Bases: object

Wrapper providing legacy discovery interfaces during migration period.

This class provides a unified interface that can be used as a drop-in replacement for legacy discovery systems during the migration phase. It delegates all StepCatalog methods to the underlying catalog while also providing access to legacy adapters.

refresh_cache()[source]

Legacy method: refresh cache using catalog.

get_available_files_report()[source]

Generate report using catalog data.

extract_base_name_from_spec(spec_path)[source]

Extract base name from spec path.

find_spec_constant_name(script_name, job_type='training')[source]

Find spec constant name using catalog.

find_specification_file(script_name)[source]

Legacy alias for find_spec_file.

find_contract_file(step_name)[source]

Legacy method: find contract file for step.

find_spec_file(step_name)[source]

Legacy method: find spec file for step.

find_builder_file(step_name)[source]

Legacy method: find builder file for step.

find_config_file(step_name)[source]

Legacy method: find config file for step.

find_all_component_files(step_name)[source]

Legacy method: find all component files for step.

get_step_info(step_name, job_type=None)[source]

Delegate to underlying StepCatalog.

find_step_by_component(component_path)[source]

Delegate to underlying StepCatalog.

list_available_steps(workspace_id=None, job_type=None)[source]

Delegate to underlying StepCatalog.

search_steps(query, job_type=None)[source]

Delegate to underlying StepCatalog.

discover_config_classes(project_id=None)[source]

Delegate to underlying StepCatalog.

build_complete_config_classes(project_id=None)[source]

Delegate to underlying StepCatalog.

get_job_type_variants(step_name)[source]

Delegate to underlying StepCatalog.

get_metrics_report()[source]

Delegate to underlying StepCatalog.

discover_contracts_with_scripts()[source]

Delegate to underlying StepCatalog.

detect_framework(step_name)[source]

Delegate to underlying StepCatalog.

discover_cross_workspace_components(workspace_ids=None)[source]

Delegate to underlying StepCatalog.

get_builder_class_path(step_name)[source]

Delegate to underlying StepCatalog.

load_builder_class(step_name)[source]

Delegate to underlying StepCatalog.

get_adapter(adapter_type)[source]

Get specific legacy adapter by type.

get_unified_catalog()[source]

Get the underlying unified catalog.

build_complete_config_classes(project_id=None)[source]

Legacy function: build complete config classes using catalog.

detect_config_classes_from_json(config_path)[source]

Legacy function: detect config classes using catalog.