check_file_format

check_file_format(input_file_name, *args, ext=('.xlsx', ))[source]

Check file format extension.

Parameters:
  • input_file_name (str) – Input file name.
  • ext (tuple[str]) – Allowed extensions.
Returns:

If the extension of the input file is within the allowed extensions.

Return type:

bool