The utils module provides standardized infrastructure for the GNN pipeline, including logging, configuration, error handling, and base classes for processing.
Minimal, always-importable logging functions for pipeline steps.
Functions:
log_step_start(logger, msg)- Log step start with 🚀 emojilog_step_success(logger, msg)- Log success with ✅ emojilog_step_warning(logger, msg)- Log warning with⚠️ emojilog_step_error(logger, msg)- Log error with ❌ emojisetup_step_logging(name, verbose)- Create configured logger
Design: Zero external dependencies, recovery-safe.
Abstract base class for standardized processing patterns.
Classes:
ProcessingResult- Dataclass for processing outcomesBaseProcessor- ABC with file discovery, error handling, reporting
Factory:
create_processor(step_name, process_func)- Wrap simple functions
Full-featured logging with correlation tracking.
Argument parsing and validation utilities.
YAML configuration management.
# Minimal (always works)
from utils.step_logging import log_step_start, log_step_success
# Full utilities
from utils import BaseProcessor, ProcessingResult, PipelineLoggerTests in: tests/test_new_utils.py (11 passing tests)