"""simple docstring"""







def   __UpperCAmelCase    (   UpperCAmelCase_   :    str      ,							UpperCAmelCase_   :    bool = False  )							->      str:

	'''simple docstring'''





	if not isinstance(UpperCAmelCase_      ,							UpperCAmelCase_  ):
		__snake_case      :							int						=			F"Expected string as input, found {type(UpperCAmelCase_  )}"
		raise ValueError(UpperCAmelCase_  )
	if not isinstance(UpperCAmelCase_      ,							UpperCAmelCase_  ):
		__snake_case      :							Any						=			F"Expected boolean as use_pascal parameter, found {type(UpperCAmelCase_  )}"
		raise ValueError(UpperCAmelCase_  )

	__snake_case      :							Optional[Any]						=			input_str.split('_'  )

	__snake_case      :							List[str]						=			0 if use_pascal else 1

	__snake_case      :							Tuple						=			words[start_index:]

	__snake_case      :							Optional[Any]						=			[word[0].upper() + word[1:] for word in words_to_capitalize]

	__snake_case      :							str						=			'' if use_pascal else words[0]

	return "".join([initial_word, *capitalized_words]  )


if __name__ == "__main__":
	from doctest import testmod

	testmod()






"""simple docstring"""







from __future__ import annotations

import os
from typing import Any

import requests

_a					:					int=			"https://api.github.com"

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
_a					:					Dict=			BASE_URL + "/user"

# https://github.com/settings/tokens
_a					:					Union[str, Any]=			os.environ.get("USER_TOKEN", "")
def   __UpperCAmelCase    (   UpperCAmelCase_   :    str  )							->      dict[Any, Any]:

	'''simple docstring'''





	__snake_case      :							Tuple						=			{
	    'Authorization': F"token {auth_token}",
	    'Accept': 'application/vnd.github.v3+json',
	}
	return requests.get(UpperCAmelCase_      ,							headers=UpperCAmelCase_  ).json()


if __name__ == "__main__":  # pragma: no cover
	if USER_TOKEN:
		for key, value in fetch_github_info(USER_TOKEN).items():
			print(f'''{key}: {value}''')
	else:
		raise ValueError("'USER_TOKEN' field cannot be empty.")





