The FormatInfo class¶
This is what a guess_file_format() method of a FormatDetector returns.
gamslib.formatdetect.formatinfo.FormatInfo
dataclass
¶
Object containing basic information about the format of a file.
FormatInfo objects are returned by format detectors.
| ATTRIBUTE | DESCRIPTION |
|---|---|
detector |
Name of the detector that detected the format.
TYPE:
|
mimetype |
MIME type of the file (e.g., 'text/xml').
TYPE:
|
subtype |
Subtype of the format, if detected.
TYPE:
|