Add rename service and utility modules for file renaming operations

- Implemented RenameService for handling file renaming with features like name validation, proposed name generation, conflict detection, and atomic rename operations.
- Created utility modules for language code extraction, regex pattern matching, and frame class matching to centralize common functionalities.
- Added comprehensive logging for error handling and debugging across all new modules.
This commit is contained in:
sHa
2025-12-31 03:13:26 +00:00
parent b50b9bc165
commit c5fbd367fc
20 changed files with 3036 additions and 76 deletions

View File

@@ -0,0 +1,21 @@
"""Services package - business logic layer for the Renamer application.
This package contains service classes that encapsulate business logic and
coordinate between different components. Services provide a clean separation
of concerns and make the application more testable and maintainable.
Services:
- FileTreeService: Manages file tree operations (scanning, building, filtering)
- MetadataService: Coordinates metadata extraction with caching and threading
- RenameService: Handles file rename operations with validation
"""
from .file_tree_service import FileTreeService
from .metadata_service import MetadataService
from .rename_service import RenameService
__all__ = [
'FileTreeService',
'MetadataService',
'RenameService',
]