Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
youtube.py34 linesDownload Raw Back to document_loaders
1from typing import TYPE_CHECKING, Any2 3from langchain_classic._api import create_importer4 5if TYPE_CHECKING:6    from langchain_community.document_loaders import (7        GoogleApiClient,8        GoogleApiYoutubeLoader,9        YoutubeLoader,10    )11 12# Create a way to dynamically look up deprecated imports.13# Used to consolidate logic for raising deprecation warnings and14# handling optional imports.15DEPRECATED_LOOKUP = {16    "YoutubeLoader": "langchain_community.document_loaders",17    "GoogleApiYoutubeLoader": "langchain_community.document_loaders",18    "GoogleApiClient": "langchain_community.document_loaders",19}20 21_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)22 23 24def __getattr__(name: str) -> Any:25    """Look up attributes dynamically."""26    return _import_attribute(name)27 28 29__all__ = [30    "GoogleApiClient",31    "GoogleApiYoutubeLoader",32    "YoutubeLoader",33]34 
codekingpro/portable-devtools · Team Ai