cursus.core.deps.factory

Factory functions for creating pipeline dependency components.

This module provides convenience functions for instantiating the core components of the dependency resolution system with proper wiring.

create_pipeline_components(context_name=None)[source]

Create all necessary pipeline components with proper dependencies.

create_dependency_resolver(registry=None, semantic_matcher=None)[source]

Create a properly configured dependency resolver.

Parameters:
  • registry (SpecificationRegistry | None) – Optional specification registry. If None, creates a new one.

  • semantic_matcher (SemanticMatcher | None) – Optional semantic matcher. If None, creates a new one.

Returns:

Configured UnifiedDependencyResolver instance

Return type:

UnifiedDependencyResolver

dependency_resolution_context(clear_on_exit=True)[source]

Create a scoped dependency resolution context.

get_thread_components()[source]

Get thread-specific component instances.