Files
wehub-resource-sync fbfefa28d3
CodeQL / Analyze (python) (push) Failing after 0s
Release / Build (push) Failing after 1s
Test Suite / Unit Tests (push) Failing after 0s
Release / Release (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:18:10 +08:00

31 lines
817 B
Python

"""
This module handles document loading functionalities for the ScrapeGraphAI application.
Note: ChromiumLoader and PlasmateLoader are lazy-imported to avoid triggering
torchcodec/FFmpeg DLL loading at import time (sentence_transformers -> torchcodec chain).
"""
from .browser_base import browser_base_fetch
from .scrape_do import scrape_do_fetch
_LAZY_MODULES = {
"ChromiumLoader": ".chromium",
"PlasmateLoader": ".plasmate",
}
def __getattr__(name):
if name in _LAZY_MODULES:
import importlib
module = importlib.import_module(_LAZY_MODULES[name], __package__)
return getattr(module, name)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__all__ = [
"browser_base_fetch",
"ChromiumLoader",
"PlasmateLoader",
"scrape_do_fetch",
]