mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 13:42:12 -03:00
- Implemented the base class `RecipeMetadataParser` for parsing recipe metadata from user comments. - Created a factory class `RecipeParserFactory` to instantiate appropriate parser based on user comment content. - Developed multiple parser classes: `ComfyMetadataParser`, `AutomaticMetadataParser`, `MetaFormatParser`, and `RecipeFormatParser` to handle different metadata formats. - Introduced constants for generation parameters and valid LoRA types. - Enhanced error handling and logging throughout the parsing process. - Added functionality to populate LoRA and checkpoint information from Civitai API responses. - Structured the output of parsed metadata to include prompts, LoRAs, generation parameters, and model information.
23 lines
547 B
Python
23 lines
547 B
Python
"""Recipe metadata parser package for ComfyUI-Lora-Manager."""
|
|
|
|
from .base import RecipeMetadataParser
|
|
from .factory import RecipeParserFactory
|
|
from .constants import GEN_PARAM_KEYS, VALID_LORA_TYPES
|
|
from .parsers import (
|
|
RecipeFormatParser,
|
|
ComfyMetadataParser,
|
|
MetaFormatParser,
|
|
AutomaticMetadataParser
|
|
)
|
|
|
|
__all__ = [
|
|
'RecipeMetadataParser',
|
|
'RecipeParserFactory',
|
|
'GEN_PARAM_KEYS',
|
|
'VALID_LORA_TYPES',
|
|
'RecipeFormatParser',
|
|
'ComfyMetadataParser',
|
|
'MetaFormatParser',
|
|
'AutomaticMetadataParser'
|
|
]
|