mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-23 22:22:11 -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.
14 lines
328 B
Python
14 lines
328 B
Python
"""Recipe parsers package."""
|
|
|
|
from .recipe_format import RecipeFormatParser
|
|
from .comfy import ComfyMetadataParser
|
|
from .meta_format import MetaFormatParser
|
|
from .automatic import AutomaticMetadataParser
|
|
|
|
__all__ = [
|
|
'RecipeFormatParser',
|
|
'ComfyMetadataParser',
|
|
'MetaFormatParser',
|
|
'AutomaticMetadataParser',
|
|
]
|