Files
Azornes-Comfyui-Model-Resolver/core/sources/__init__.py
T
Dariusz L e8b49dd184 Add AzLogs logging system and integrate
Introduce a new logging subsystem under core/log_system (logger.py, config.py, log_funcs.py) implementing AzLogs (LogLevel enum, colored console output, optional file rotation) and a lightweight wrapper (log_debug/info/warn/error/exception) with safe fallback when AzLogs is unavailable. Integrate these log functions across many core modules (downloader, linker, matcher, scanner, workflow_analyzer, workflow_updater, sources and related files) and export logger and helper log functions from core.__init__. Replace several direct logging calls in linker with the new log_* helpers and update core.__init__ exports. Also include small code style and robustness tweaks (path/filename normalization, JSON/file handling, minor refactors and formatting fixes) to improve matching and model-list/popular lookups.
2026-04-21 23:51:46 +02:00

30 lines
851 B
Python

"""
Model Sources Module
Provides search functionality for finding models from various sources.
"""
from ..log_system.log_funcs import log_debug, log_info, log_warn, log_error, log_exception
from .popular import search_popular_models, get_popular_model_url
from .model_list import search_model_list, search_model_list_multiple
from .huggingface import (
search_huggingface,
search_huggingface_for_file,
get_huggingface_download_url,
)
from .civitai import search_civitai, search_civitai_for_file, get_civitai_download_url
__all__ = [
"search_popular_models",
"get_popular_model_url",
"search_model_list",
"search_model_list_multiple",
"search_huggingface",
"search_huggingface_for_file",
"get_huggingface_download_url",
"search_civitai",
"search_civitai_for_file",
"get_civitai_download_url",
]