Files
cs249r_book/tools/scripts/common/__init__.py
Vijay Janapa Reddi bdedbc78bb feat(tools): add shared infrastructure for MLSysBook tool development
- Add pyproject.toml with comprehensive Python package configuration
- Create tools/scripts/common/ package with shared utilities:
  - base_classes.py: Abstract base classes following SOLID principles
  - config.py: Centralized configuration management with environment support
  - exceptions.py: Custom exception hierarchy for better error handling
  - logging_config.py: Standardized logging setup across all tools
  - validators.py: Input validation utilities with detailed error reporting

This establishes a proper foundation for building maintainable,
production-grade tools following software engineering best practices
as outlined in the updated .cursorrules guidelines.
2025-08-09 08:49:33 -04:00

30 lines
921 B
Python

"""
Common utilities and shared components for MLSysBook tools.
This package provides shared functionality across all tools in the MLSysBook project,
including base classes, configuration management, logging setup, and common utilities.
Modules:
base_classes: Abstract base classes for tools and processors
config: Configuration management and environment handling
exceptions: Custom exception definitions
logging_config: Centralized logging configuration
validators: Input validation utilities
file_utils: File and path operation utilities
"""
from .exceptions import MLSysBookError, ConfigurationError, ValidationError
from .config import get_config, Config
from .logging_config import setup_logging, get_logger
__version__ = "1.0.0"
__all__ = [
"MLSysBookError",
"ConfigurationError",
"ValidationError",
"get_config",
"Config",
"setup_logging",
"get_logger",
]