mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
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:
@@ -0,0 +1,21 @@
|
||||
"""Utils package - shared utility functions for the Renamer application.
|
||||
|
||||
This package contains utility modules that provide common functionality
|
||||
used across multiple parts of the application. This eliminates code
|
||||
duplication and provides a single source of truth for shared logic.
|
||||
|
||||
Modules:
|
||||
- language_utils: Language code extraction and conversion
|
||||
- pattern_utils: Regex pattern matching and extraction
|
||||
- frame_utils: Frame class/aspect ratio matching
|
||||
"""
|
||||
|
||||
from .language_utils import LanguageCodeExtractor
|
||||
from .pattern_utils import PatternExtractor
|
||||
from .frame_utils import FrameClassMatcher
|
||||
|
||||
__all__ = [
|
||||
'LanguageCodeExtractor',
|
||||
'PatternExtractor',
|
||||
'FrameClassMatcher',
|
||||
]
|
||||
Reference in New Issue
Block a user