méthode detect_file_format

detect_file_format(, flux)

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.


@staticmethod
def detect_file_format(stream):
    ...
ParamètreTaperDescription
streamio.RawIOBase

detect_file_format(, chemin_fichier)

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.


@staticmethod
def detect_file_format(file_path):
    ...
ParamètreTaperDescription
file_pathstrLe chemin du fichier.

detect_file_format(, flux, mot de passe)

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.


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

detect_file_format(, chemin_fichier, mot de passe)

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.


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

Voir également