





import os
from collections.abc import Iterator






def lowerCamelCase__    (							snake_case_	:  str = "."       )      ->				Iterator[str]:
   for dir_path, dir_names, filenames in os.walk(snake_case_       ):
      __snake_case							       =   [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(snake_case_       )[1] in (".py", ".ipynb"):
            yield os.path.join(snake_case_       ,      snake_case_       ).lstrip('''./'''       )






def lowerCamelCase__    (							snake_case_	:  Tuple       )      ->				List[str]:
   return f"""{i * '  '}*""" if i else "\n##"






def lowerCamelCase__    (							snake_case_	:  str       ,      snake_case_	:  str       )      ->				str:
   __snake_case							       =   old_path.split(os.sep       )
   for i, new_part in enumerate(new_path.split(os.sep       )       ):
      if (i + 1 > len(snake_case_       ) or old_parts[i] != new_part) and new_part:
         print(f"""{md_prefix(snake_case_       )} {new_part.replace('_'       ,      ' '       ).title()}"""       )
   return new_path






def lowerCamelCase__    (							snake_case_	:  str = "."       )      ->				None:
   __snake_case							       =   ''''''
   for filepath in sorted(good_file_paths(snake_case_       )       ):
      __snake_case       ,	__snake_case							       =   os.path.split(snake_case_       )
      if filepath != old_path:
         __snake_case							       =   print_path(snake_case_       ,      snake_case_       )
      __snake_case							       =   (filepath.count(os.sep       ) + 1) if filepath else 0
      __snake_case							       =   f"""{filepath}/{filename}""".replace(''' '''       ,      '''%20'''       )
      __snake_case							       =   os.path.splitext(filename.replace('''_'''       ,      ''' '''       ).title()       )[0]
      print(f"""{md_prefix(snake_case_       )} [{filename}]({url})"""       )


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








import socket






def lowerCamelCase__    (							)      ->				Any:
   __snake_case							       =   socket.socket(socket.AF_INET       ,      socket.SOCK_STREAM       )
   __snake_case							       =   socket.gethostname()
   __snake_case							       =   1_2312

   sock.connect((host, port)       )
   sock.send(B'''Hello server!'''       )

   with open('''Received_file'''       ,      '''wb'''       ) as out_file:
      print('''File opened'''       )
      print('''Receiving data...'''       )
      while True:
         __snake_case							       =   sock.recv(1024       )
         if not data:
            break
         out_file.write(snake_case_       )

   print('''Successfully received the file'''       )
   sock.close()
   print('''Connection closed'''       )


if __name__ == "__main__":
    main()

