mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 19:43:28 +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:
@@ -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',
|
||||
]
|
||||
Reference in New Issue
Block a user