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
+44 -1
View File
@@ -1 +1,44 @@
# Formatters package
"""Formatters package - provides value formatting for display.
This package contains various formatter classes that transform raw values
into display-ready strings with optional styling.
All formatters should inherit from the Formatter ABC defined in base.py.
"""
from .base import (
Formatter,
DataFormatter,
TextFormatter as TextFormatterBase,
MarkupFormatter,
CompositeFormatter
)
from .text_formatter import TextFormatter
from .duration_formatter import DurationFormatter
from .size_formatter import SizeFormatter
from .date_formatter import DateFormatter
from .extension_formatter import ExtensionFormatter
from .resolution_formatter import ResolutionFormatter
from .track_formatter import TrackFormatter
from .special_info_formatter import SpecialInfoFormatter
from .formatter import FormatterApplier
__all__ = [
# Base classes
'Formatter',
'DataFormatter',
'TextFormatterBase',
'MarkupFormatter',
'CompositeFormatter',
# Concrete formatters
'TextFormatter',
'DurationFormatter',
'SizeFormatter',
'DateFormatter',
'ExtensionFormatter',
'ResolutionFormatter',
'TrackFormatter',
'SpecialInfoFormatter',
'FormatterApplier',
]