



'''simple docstring'''





import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


_lowerCAmelCase      						=	logging.get_logger(__name__)






class        lowerCAmelCase_(				SCREAMING_SNAKE_CASE__     ):
  '''simple docstring'''




  def __init__(    self  ,*__UpperCAmelCase  ,**__UpperCAmelCase      )    ->		Optional[int]:
      warnings.warn(
          """The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
          """ Please use PerceiverImageProcessor instead."""  ,__lowerCamelCase  ,)
      super().__init__(*__lowerCamelCase  ,**__lowerCamelCase      )









"""simple docstring"""



import requests

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







def 		__lowercase     (   snake_case_  :  str = "Chicago"				,snake_case_  :  str = APPID						)   ->dict:



    '''simple docstring'''







    return requests.get(URL_BASE + '''weather'''				,params=locals()						).json()







def 		__lowercase     (   snake_case_  :  str = "Kolkata, India"				,snake_case_  :  str = APPID						)   ->dict:



    '''simple docstring'''







    return requests.get(URL_BASE + '''forecast'''				,params=locals()						).json()







def 		__lowercase     (   snake_case_  :  float = 55.68				,snake_case_  :  float = 12.57				,snake_case_  :  str = APPID						)   ->dict:



    '''simple docstring'''







    return requests.get(URL_BASE + '''onecall'''				,params=locals()						).json()


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

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




