
import requests

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



def        UpperCamelCase    (							lowerCAmelCase__ = "Chicago" ,			lowerCAmelCase__ = APPID		):
					'''simple docstring'''
					return requests.get(URL_BASE + '''weather''' ,			params=locals()		).json()



def        UpperCamelCase    (							lowerCAmelCase__ = "Kolkata, India" ,			lowerCAmelCase__ = APPID		):
					'''simple docstring'''
					return requests.get(URL_BASE + '''forecast''' ,			params=locals()		).json()



def        UpperCamelCase    (							lowerCAmelCase__ = 55.68 ,			lowerCAmelCase__ = 12.57 ,			lowerCAmelCase__ = APPID		):
					'''simple docstring'''
					return requests.get(URL_BASE + '''onecall''' ,			params=locals()		).json()


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

							while True:
														lowercase__		:List[Any]   =    input("Enter a location:").strip()
														if location:
																					pprint(current_weather(location))
														else:
																					break









'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


_lowerCamelCase	:       List[Any]      	=	{
    "configuration_m2m_100": ["M2M_100_PRETRAINED_CONFIG_ARCHIVE_MAP", "M2M100Config", "M2M100OnnxConfig"],
    "tokenization_m2m_100": ["M2M100Tokenizer"],
}


try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _lowerCamelCase	:       int      	=	[
       "M2M_100_PRETRAINED_MODEL_ARCHIVE_LIST",
       "M2M100ForConditionalGeneration",
       "M2M100Model",
       "M2M100PreTrainedModel",
   ]


if TYPE_CHECKING:
   from .configuration_mam_aaa import M2M_100_PRETRAINED_CONFIG_ARCHIVE_MAP, MaMaaaConfig, MaMaaaOnnxConfig
   from .tokenization_mam_aaa import MaMaaaTokenizer

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_mam_aaa import (
          M2M_100_PRETRAINED_MODEL_ARCHIVE_LIST,
          MaMaaaForConditionalGeneration,
          MaMaaaModel,
          MaMaaaPreTrainedModel,
      )


else:
   import sys

   _lowerCamelCase	:       Optional[int]      	=	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

