detect_file_format method

detect_file_format(, stream)

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

Returns

A FileFormatInfo object that contains the detected information.


@staticmethod
def detect_file_format(stream):
    ...
ParameterTypeDescription
streamio.RawIOBase

detect_file_format(, file_path)

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

Returns

A FileFormatInfo object that contains the detected information.


@staticmethod
def detect_file_format(file_path):
    ...
ParameterTypeDescription
file_pathstrThe file path.

detect_file_format(, stream, password)

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

Returns

A FileFormatInfo object that contains the detected information.


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

detect_file_format(, file_path, password)

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

Returns

A FileFormatInfo object that contains the detected information.


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

See Also