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:
21
renamer/services/__init__.py
Normal file
21
renamer/services/__init__.py
Normal 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',
|
||||
]
|
||||
Reference in New Issue
Block a user