





"""simple docstring"""




import os
from distutils.util import strtobool






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    int    ,       _lowercase						:    Optional[Any]					) ->Dict:






	'''simple docstring'''






	for e in env_keys:
		a      :		List[Any]	=				int(os.environ.get(_lowercase    ,       -1					)					)
		if val >= 0:
			return val
	return default






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    int    ,       _lowercase						:    int=False					) ->str:






	'''simple docstring'''






	a      :		List[str]	=				os.environ.get(_lowercase    ,       str(_lowercase					)					)
	return strtobool(_lowercase					) == 1  # As its name indicates `strtobool` actually returns an int...







def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    Any    ,       _lowercase						:    Any="no"					) ->Optional[int]:






	'''simple docstring'''






	a      :		Union[str, Any]	=				os.environ.get(_lowercase    ,       str(_lowercase					)					)
	return value




import requests


def       A       (					lowercase    ,       lowercase )   ->  None:
		'''simple docstring'''

		UpperCamelCase		=     {'Content-Type': 'application/json'}
		UpperCamelCase		=     requests.post(lowercase    ,       json={'text': message_body}    ,       headers=lowercase )
		if response.status_code != 200:
				UpperCamelCase		=     (
				    'Request to slack returned an error '
				    f'''{response.status_code}, the response is:\n{response.text}'''
				)
				raise ValueError(lowercase )


if __name__ == "__main__":
					# Set the slack url to the one provided by Slack when you create the webhook at
					# https://my.slack.com/services/new/incoming-webhook/
					send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")
