




from datetime import date

import requests

UpperCamelCase__		=						'https://api.carbonintensity.org.uk/intensity'






def  snake_case (							)							->							str:




	'''simple docstring'''


	lowerCamelCase_							:		List[Any]							       =							requests.get(lowercase_      ).json()['data'][0]
	return last_half_hour["intensity"]["actual"]






def  snake_case (							A						,       A      )							->							list:




	'''simple docstring'''


	return requests.get(f"{BASE_URL}/{start}/{end}"      ).json()["data"]


if __name__ == "__main__":
							for entry in fetch_from_to(start=date(2_0_2_0, 1_0, 1), end=date(2_0_2_0, 1_0, 3)):
														print('from {from} to {to}: {intensity[actual]}'.format(**entry))
							print(F'{fetch_last_half_hour() = }')






from typing import Callable






def  snake_case (							A      )							->							List[str]:




	'''simple docstring'''


	def wrapper(A      ):
		lowerCamelCase_							:		Dict							       =							function_with_docstring.__doc__
		return target_function

	return wrapper
