Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py28 linesDownload Raw Back to google_finance
1"""Google Finance API Toolkit."""2 3from typing import TYPE_CHECKING, Any4 5from langchain_classic._api import create_importer6 7if TYPE_CHECKING:8    from langchain_community.tools.google_finance.tool import GoogleFinanceQueryRun9 10# Create a way to dynamically look up deprecated imports.11# Used to consolidate logic for raising deprecation warnings and12# handling optional imports.13DEPRECATED_LOOKUP = {14    "GoogleFinanceQueryRun": "langchain_community.tools.google_finance.tool",15}16 17_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)18 19 20def __getattr__(name: str) -> Any:21    """Look up attributes dynamically."""22    return _import_attribute(name)23 24 25__all__ = [26    "GoogleFinanceQueryRun",27]28 
codekingpro/portable-devtools · Team Ai