detect_file_format méthode

detect_file_format(stream)

Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un flux.

Retour

Un objet FileFormatInfo qui contient les informations détectées.

def detect_file_format(self, stream):
    ...
ParamètreTaperDescription
streamio.RawIOBase

detect_file_format(file_path)

Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un fichier.

Retour

Un objet FileFormatInfo qui contient les informations détectées.

def detect_file_format(self, file_path):
    ...
ParamètreTaperDescription
file_pathstrLe chemin du fichier.

detect_file_format(stream, password)

Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un flux.

Retour

Un objet FileFormatInfo qui contient les informations détectées.

def detect_file_format(self, stream, password):
    ...
ParamètreTaperDescription
streamio.RawIOBase
passwordstrLe mot de passe pour les fichiers ooxml chiffrés.

detect_file_format(file_path, password)

Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un fichier.

Retour

Un objet FileFormatInfo qui contient les informations détectées.

def detect_file_format(self, file_path, password):
    ...
ParamètreTaperDescription
file_pathstrLe chemin du fichier.
passwordstrLe mot de passe pour les fichiers ooxml chiffrés.

Voir également