



'''simple docstring'''




import requests

UpperCamelCase__ :			str												=				''''''  # <-- Put your OpenWeatherMap appid here!
UpperCamelCase__ :			Optional[int]												=				'''https://api.openweathermap.org/data/2.5/'''


def        lowerCAmelCase_     (			_lowerCamelCase:     List[Any] = "Chicago" ,   _lowerCamelCase:     Dict = APPID      ):
		return requests.get(URL_BASE + """weather""" ,   params=locals()      ).json()


def        lowerCAmelCase_     (			_lowerCamelCase:     Any = "Kolkata, India" ,   _lowerCamelCase:     Tuple = APPID      ):
		return requests.get(URL_BASE + """forecast""" ,   params=locals()      ).json()


def        lowerCAmelCase_     (			_lowerCamelCase:     str = 55.68 ,   _lowerCamelCase:     List[Any] = 12.57 ,   _lowerCamelCase:     Dict = APPID      ):
		return requests.get(URL_BASE + """onecall""" ,   params=locals()      ).json()


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

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




'''simple docstring'''




UpperCamelCase__ :			List[str]												=				'''0.21.0'''

from .accelerator import Accelerator
from .big_modeling import (
    cpu_offload,
    cpu_offload_with_hook,
    disk_offload,
    dispatch_model,
    init_empty_weights,
    init_on_device,
    load_checkpoint_and_dispatch,
)
from .data_loader import skip_first_batches
from .launchers import debug_launcher, notebook_launcher
from .state import PartialState
from .utils import (
    DeepSpeedPlugin,
    DistributedDataParallelKwargs,
    DistributedType,
    FullyShardedDataParallelPlugin,
    GradScalerKwargs,
    InitProcessGroupKwargs,
    find_executable_batch_size,
    infer_auto_device_map,
    is_rich_available,
    load_checkpoint_in_model,
    synchronize_rng_states,
)


if is_rich_available():
						from .utils import rich