OpenWeatherMapAPIWrapper#
- class langchain_community.utilities.openweathermap.OpenWeatherMapAPIWrapper[source]#
Bases:
BaseModel
Wrapper for OpenWeatherMap API using PyOWM.
Docs for using:
Go to OpenWeatherMap and sign up for an API key
Save your API KEY into OPENWEATHERMAP_API_KEY env variable
pip install pyowm
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param openweathermap_api_key: str | None = None#
- param owm: Any = None#
Examples using OpenWeatherMapAPIWrapper