



"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowerCAmelCase       :str	=   {
    'configuration_upernet': ['UperNetConfig'],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  _lowerCAmelCase       :Dict	=   [
      'UperNetForSemanticSegmentation',
      'UperNetPreTrainedModel',
  ]


if TYPE_CHECKING:
  from .configuration_upernet import UperNetConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_upernet import UperNetForSemanticSegmentation, UperNetPreTrainedModel


else:
  import sys

  _lowerCAmelCase       :Tuple	=   _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




'''simple docstring'''
import requests

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






def      UpperCamelCase_				(      A__ = "Chicago"  ,      A__ = APPID						):
	return requests.get(URL_BASE + """weather"""  ,      params=locals()						).json()






def      UpperCamelCase_				(      A__ = "Kolkata, India"  ,      A__ = APPID						):
	return requests.get(URL_BASE + """forecast"""  ,      params=locals()						).json()






def      UpperCamelCase_				(      A__ = 55.68  ,      A__ = 12.57  ,      A__ = APPID						):
	return requests.get(URL_BASE + """onecall"""  ,      params=locals()						).json()


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

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