import os
from collections.abc import Iterator



def 	_a						(   UpperCAmelCase = "."					)    ->    Iterator[str]:







   """simple docstring"""
   for dir_path, dir_names, filenames in os.walk(UpperCAmelCase					):
      lowerCamelCase__       :						Dict        =							[d for d in dir_names if d != '''scripts''' and d[0] not in '''._''']
      for filename in filenames:
         if filename == "__init__.py":
            continue
         if os.path.splitext(UpperCAmelCase					)[1] in (".py", ".ipynb"):
            yield os.path.join(UpperCAmelCase      ,  UpperCAmelCase					).lstrip('''./'''					)



def 	_a						(   UpperCAmelCase					)    ->    Dict:







   """simple docstring"""
   return f"{i * '  '}*" if i else "\n##"



def 	_a						(   UpperCAmelCase      ,  UpperCAmelCase					)    ->    str:







   """simple docstring"""
   lowerCamelCase__       :						Optional[Any]        =							old_path.split(os.sep					)
   for i, new_part in enumerate(new_path.split(os.sep					)					):
      if (i + 1 > len(UpperCAmelCase					) or old_parts[i] != new_part) and new_part:
         print(f"{md_prefix(UpperCAmelCase					)} {new_part.replace('_'      ,  ' '					).title()}"					)
   return new_path



def 	_a						(   UpperCAmelCase = "."					)    ->    None:







   """simple docstring"""
   lowerCamelCase__       :						Tuple        =							''''''
   for filepath in sorted(good_file_paths(UpperCAmelCase					)					):
      lowerCamelCase__       :						Union[str, Any]        =							os.path.split(UpperCAmelCase					)
      if filepath != old_path:
         lowerCamelCase__       :						Dict        =							print_path(UpperCAmelCase      ,  UpperCAmelCase					)
      lowerCamelCase__       :						List[str]        =							(filepath.count(os.sep					) + 1) if filepath else 0
      lowerCamelCase__       :						str        =							f"{filepath}/{filename}".replace(''' '''      ,  '''%20'''					)
      lowerCamelCase__       :						List[Any]        =							os.path.splitext(filename.replace('''_'''      ,  ''' '''					).title()					)[0]
      print(f"{md_prefix(UpperCAmelCase					)} [{filename}]({url})"					)


if __name__ == "__main__":
       print_directory_md('.')










import pprint

import requests

_A :   Any  			=  'https://zenquotes.io/api'



def 	_a						(   )    ->    list:







   """simple docstring"""
   return requests.get(API_ENDPOINT_URL + '''/today'''					).json()



def 	_a						(   )    ->    list:







   """simple docstring"""
   return requests.get(API_ENDPOINT_URL + '''/random'''					).json()


if __name__ == "__main__":
       _A :   Optional[Any]  			=  random_quotes()
       pprint.pprint(response)



