mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-05 09:09:13 -05:00
- 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.
30 lines
921 B
Python
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",
|
|
]
|