mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
c72bcda4f2
Remove the REPL from community, and suggest an alternative import from langchain_experimental. Fix for this issue: https://github.com/langchain-ai/langchain/issues/14345 This is not a bug in the code or an actual security risk. The python REPL itself is behaving as expected. The PR is done to appease blanket security policies that are just looking for the presence of exec in the code. --------- Co-authored-by: Erick Friis <erick@langchain.dev>
70 lines
1.7 KiB
Python
70 lines
1.7 KiB
Python
from langchain_community.utilities import __all__, _module_lookup
|
|
|
|
EXPECTED_ALL = [
|
|
"AlphaVantageAPIWrapper",
|
|
"ApifyWrapper",
|
|
"ArceeWrapper",
|
|
"ArxivAPIWrapper",
|
|
"AskNewsAPIWrapper",
|
|
"BibtexparserWrapper",
|
|
"BingSearchAPIWrapper",
|
|
"BraveSearchWrapper",
|
|
"DataheraldAPIWrapper",
|
|
"DuckDuckGoSearchAPIWrapper",
|
|
"DriaAPIWrapper",
|
|
"GoldenQueryAPIWrapper",
|
|
"GoogleFinanceAPIWrapper",
|
|
"GoogleJobsAPIWrapper",
|
|
"GoogleLensAPIWrapper",
|
|
"GooglePlacesAPIWrapper",
|
|
"GoogleScholarAPIWrapper",
|
|
"GoogleSearchAPIWrapper",
|
|
"GoogleSerperAPIWrapper",
|
|
"GoogleTrendsAPIWrapper",
|
|
"GraphQLAPIWrapper",
|
|
"InfobipAPIWrapper",
|
|
"JiraAPIWrapper",
|
|
"LambdaWrapper",
|
|
"MaxComputeAPIWrapper",
|
|
"MetaphorSearchAPIWrapper",
|
|
"NasaAPIWrapper",
|
|
"RivaASR",
|
|
"RivaTTS",
|
|
"AudioStream",
|
|
"NVIDIARivaASR",
|
|
"NVIDIARivaTTS",
|
|
"NVIDIARivaStream",
|
|
"OpenWeatherMapAPIWrapper",
|
|
"OracleSummary",
|
|
"OutlineAPIWrapper",
|
|
"NutritionAIAPI",
|
|
"Portkey",
|
|
"PowerBIDataset",
|
|
"PubMedAPIWrapper",
|
|
"Requests",
|
|
"RequestsWrapper",
|
|
"RememberizerAPIWrapper",
|
|
"SQLDatabase",
|
|
"SceneXplainAPIWrapper",
|
|
"SearchApiAPIWrapper",
|
|
"SearxSearchWrapper",
|
|
"SerpAPIWrapper",
|
|
"SparkSQL",
|
|
"StackExchangeAPIWrapper",
|
|
"SteamWebAPIWrapper",
|
|
"TensorflowDatasets",
|
|
"TextRequestsWrapper",
|
|
"TwilioAPIWrapper",
|
|
"WikipediaAPIWrapper",
|
|
"WolframAlphaAPIWrapper",
|
|
"YouSearchAPIWrapper",
|
|
"ZapierNLAWrapper",
|
|
"MerriamWebsterAPIWrapper",
|
|
"MojeekSearchAPIWrapper",
|
|
]
|
|
|
|
|
|
def test_all_imports() -> None:
|
|
assert set(__all__) == set(EXPECTED_ALL)
|
|
assert set(__all__) == set(_module_lookup.keys())
|