detect_file_format method

detect_file_format

Detects and returns the information about a format of an excel stored in a stream.

Returns

A FileFormatInfo object that contains the detected information.

def detect_file_format(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBase

detect_file_format

Detects and returns the information about a format of an excel stored in a file.

Returns

A FileFormatInfo object that contains the detected information.

def detect_file_format(self, file_path):
    ...
ParameterTypeDescription
file_pathstrThe file path.

detect_file_format

Detects and returns the information about a format of an excel stored in a stream.

Returns

A FileFormatInfo object that contains the detected information.

def detect_file_format(self, stream, password):
    ...
ParameterTypeDescription
streamio.RawIOBase
passwordstrThe password for encrypted ooxml files.

detect_file_format

Detects and returns the information about a format of an excel stored in a file.

Returns

A FileFormatInfo object that contains the detected information.

def detect_file_format(self, file_path, password):
    ...
ParameterTypeDescription
file_pathstrThe file path.
passwordstrThe password for encrypted ooxml files.

See Also