"""simple docstring"""


import warnings

from ...utils import logging
from .image_processing_clip import CLIPImageProcessor


UpperCAmelCase__     						=  logging.get_logger(__name__)


class 				a (						lowerCAmelCase_      ):


    def __init__(    self		:     Dict      , *__lowerCAmelCase		:     Union[str, Any]      , **__lowerCAmelCase		:     Union[str, Any]    ):
      warnings.warn(
          """The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
          """ use CLIPImageProcessor instead."""      , __lowerCAmelCase      , )
      super().__init__(*__lowerCAmelCase      , **__lowerCAmelCase    )

"""simple docstring"""


import requests

UpperCAmelCase__     						=  """"""  # <-- Put your OpenWeatherMap appid here!
UpperCAmelCase__     						=  """https://api.openweathermap.org/data/2.5/"""






def 			__UpperCAmelCase    (	lowercase = "Chicago"      ,lowercase = APPID						):







  """simple docstring"""
  return requests.get(URL_BASE + """weather"""      ,params=locals()						).json()






def 			__UpperCAmelCase    (	lowercase = "Kolkata, India"      ,lowercase = APPID						):







  """simple docstring"""
  return requests.get(URL_BASE + """forecast"""      ,params=locals()						).json()






def 			__UpperCAmelCase    (	lowercase = 55.68      ,lowercase = 12.57      ,lowercase = APPID						):







  """simple docstring"""
  return requests.get(URL_BASE + """onecall"""      ,params=locals()						).json()


if __name__ == "__main__":
    from pprint import pprint

    while True:
        UpperCAmelCase__     						=  input("""Enter a location:""").strip()
        if location:
            pprint(current_weather(location))
        else:
            break
