FileType class

FileType class

Represents the file type.

Learn more

The FileType type exposes the following members:

Methods

Method Description
get_supported_file_types Retrieves supported file types.
to_string Returns a str that represents the current FileType.

Properties

Property Description
description The file type description.
extension The file extension.
format_family The format family.

Fields

Field Description
UNKNOWN Represents unknown file type.
FB2 Files with FB2 extension are FictionBook 2.0 eBook files that contains the structure of the eBook. It is based on XML format and contains special tags for describing each element of the book. Learn more about this file format here.
TXT A file with .TXT extension represents a text document that contains plain text in the form of lines. Learn more about this file format here.
LOG A file with .LOG extension is typically a text document containing plain text in the form of lines.
PPT A file with PPT extension represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003. Learn more about this file format here.
ODT ODT files are type of documents created with word processing applications that are based on OpenDocument Text File format. These are created with word processor applications such as free OpenOffice Writer and can hold content such as text, images, objects and styles. Learn more about this file format here.
OTT Files with OTT extension represent template documents generated by applications in compliance with the OASIS’ OpenDocument standard format. These are created with word processor applications such as free OpenOffice Writer and can hold settings that can be used to generate new documents from these template files. Learn more about this file format here.
DOT Files with .DOT extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOC or DOCX files. Learn more about this file format here.
POT Files with .POT extension represent Microsoft PowerPoint template files in binary format created by PowerPoint 97-2003 versions. Learn more about this file format here.
PST Files with .PST extension represent Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information. Learn more about this file format here.
OST OST or Offline Storage Files represent user’s mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook. Learn more about this file format here.
DOC Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format. Learn more about this file format here.
DOCX DOCX is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Learn more about this file format here.
XLSX XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Learn more about this file format here.
PPSX PPSX, Power Point Slide Show, file are created using Microsoft PowerPoint 2007 and above for Slide Show purpose. Learn more about this file format here.
PPTX Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. Learn more about this file format here.
XLTX Files with XLTX extension represent Microsoft Excel Template files that are based on the Office OpenXML file format specifications. Learn more about this file format here.
DOTX Files with DOTX extension are template files created by Microsoft Word to have pre-formatted settings for generation of further DOCX files. Learn more about this file format here.
POTX Files with .POTX extension represent Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above. Learn more about this file format here.
XLS Files with XLS extension represent Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. Learn more about this file format here.
XLT Files with .XLT extension are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Learn more about this file format here.
ODS Files with ODS extension stand for OpenDocument Spreadsheet Document format that are editable by user. Learn more about this file format here.
OTS Represents OpenDocument Spreadsheet Template file format. Learn more about spreadsheet file formats here.
PPS PPS, PowerPoint Slide Show, files are created using Microsoft PowerPoint for Slide Show purpose. PPS file reading and creation is supported by Microsoft PowerPoint 97-2003. Learn more about this file format here.
PDF Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. Learn more about this file format here.
RTF Introduced and documented by Microsoft, the Rich Text Format (RTF) represents a method of encoding formatted text and graphics for use within applications. The format facilitates cross-platform document exchange with other Microsoft Products, thus serving the purpose of interoperability. Learn more about this file format here.
XLSM Files with XLSM extension is a type of Spreasheet files that support Macros. Learn more about this file format here.
PPSM Files with PPSM extension represent Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Learn more about this file format here.
XLTM The XLTM file extension represents files that are generated by Microsoft Excel as Macro-enabled template files. Learn more about this file format here.
DOTM A file with DOTM extension represents template file created with Microsoft Word 2007 or higher. Learn more about this file format here.
PPTM Files with PPTM extension are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions. Learn more about this file format here.
DOCM DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros. Learn more about this file format here.
XLSB XLSB file format specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content. Learn more about this file format here.
EPUB Files with .EPUB extension are an e-book file format that provide a standard digital publication format for publishers and consumers. Learn more about this file format here.
ODP Files with ODP extension represent presentation file format used by OpenOffice.org in the OASIS Open standard. Learn more about this file format here.
ONE File represented by .ONE extension are created by Microsoft OneNote application. Learn more about this file format here.
ZIP ZIP file extension represents archives that can hold one or more files or directories. Learn more about this file format here.
CHM The CHM file format represents Microsoft HTML help file that consists of a collection of HTML pages. Learn more about this file format here.
EML EML file format represents email messages saved using Outlook and other relevant applications. Learn more about this file format here.
EMLX The EMLX file format is implemented and developed by Apple. The Apple Mail application uses the EMLX file format for exporting the emails. Learn more about this file format here.
MSG MSG is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks. Learn more about this file format here.
MD Text files created with Markdown language dialects is saved with .MD or .MARKDOWN file extension. Learn more about this file format here.
POTM Files with POTM extension are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. Learn more about this file format here.
CSV Files with CSV (Comma Separated Values) extension represent plain text files that contain records of data with comma separated values. Learn more about this file format here.
XML XML stands for Extensible Markup Language that is similar to HTML but different in using tags for defining objects. Learn more about this file format here.
TSV A Tab-Separated Values (TSV) file format represents data separated with tabs in plain text format. Learn more about this file format here.
HTM Files with HTM extension represent Hypertext Markup Language for creating web pages for display in web browsers. Learn more about this file format here.
HTML HTML (Hyper Text Markup Language) is the extension for web pages created for display in web browsers. Learn more about this file format here.
XHTML The XHTML is a text based file format with markup in the XML, using a reformulation of HTML 4.0. Learn more about this file format here.
MHT Files with MHT extension represent a web page archive format that can be created by a number of different applications. Learn more about this file format here.
MHTML Files with MHTML extension represent a web page archive format that can be created by a number of different applications. Learn more about this file format here.
MP3 Files with MP3 extension are digitally encoded file formats for audio files that are formally based on the MPEG-1 Audio Layer III or MPEG-2 Audio Layer III. Learn more about this file format here.
WAV WAV, known for WAVE (Waveform Audio File Format), is a subset of Microsoft’s Resource Interchange File Format (RIFF) specification for storing digital audio files. Learn more about this file format here.
BMP Files having extension .BMP represent Bitmap Image files that are used to store bitmap digital images. These images are independent of graphics adapter and are also called device independent bitmap (DIB) file format. Learn more about this file format here.
DJVU DjVu is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs. Learn more about this file format here.
DJV DjVu is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs. Learn more about this file format here.
GIF A GIF or Graphical Interchange Format is a type of highly compressed image. Learn more about this file format here.
JPG A JPEG is a type of image format that is saved using the method of lossy compression. Learn more about this file format here.
JPE A JPEG is a type of image format that is saved using the method of lossy compression. Learn more about this file format here.
JPEG A JPEG is a type of image format that is saved using the method of lossy compression. Learn more about this file format here.
JP2 JPEG 2000 (JP2) is an image coding system and state-of-the-art image compression standard. Designed, using wavelet technology JPEG 2000 can code lossless content in any quality at once. Learn more about this file format here.
PNG PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression. Learn more about this file format here.
TIFF TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. Learn more about this file format here.
TIF TIFF or TIF, Tagged Image File Format, represents raster images that are meant for usage on a variety of devices that comply with this file format standard. Learn more about this file format here.
WEBP WebP, introduced by Google, is a modern raster web image file format that is based on lossless and lossy compression. It provides same image quality while considerably reducing the image size. Learn more about this file format here.
EMF Enhanced metafile format (EMF) stores graphical images device-independently. Learn more about this file format here.
WMF Files with WMF extension represent Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data. Learn more about this file format here.
PSD PSD, Photoshop Document, represents Adobe Photoshop’s native file format used for graphics designing and development. Learn more about this file format here.
MPP MPP is proprietary file format developed by Microsoft as file format for Microsoft Project (MSP) which is a project management application software. Learn more about this file format here.
TORRENT Represents TORRENT file type.
VSD VSD files are drawings created with Microsoft Visio application to represent variety of graphical objects and the interconnection between these. Learn more about this file format here.
VSS VSS are stencil files created with Microsoft Visio 2007 and earlier. Stencil files provide drawing objects that can be included in a .VSD Visio drawing. Learn more about this file format here.
DCM Files with .DCM extension represent digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images. Learn more about this file format here.
DC3 Represents DC3 file type.
DIC Represents DIC file type.
DICOM Represents DICOM file type.
AVI The AVI file format is an Audio Video multimedia container file format that was introduced by Microsoft. Learn more about this file format here.
MOV MOV or QuickTime File format is multimedia container which is developed by Apple: contains one or more tracks, each track holds a particular type of data i.e. Video, Audio, text etc. Learn more about this file format here.
QT MOV or QuickTime File format is multimedia container which is developed by Apple: contains one or more tracks, each track holds a particular type of data i.e. Video, Audio, text etc. Learn more about this file format here.
FLV Represents FLV file type.
ASF The Advanced Systems Format (ASF) is a digital multimedia container designed primarily for storing and transmitting media streams. Microsoft Windows Media Video (WMV) is the compressed video format and Microsoft Windows Media Audio (WMA) is the compressed audio format along with additional metadata in the ASF container developed by Microsoft. Learn more about this file format here.
XLA Represents XLA file type.
XLAM Represents XLAM file type.

Example

from groupdocs.search.results import FileType

supported_file_types = sorted(
    (ft for ft in FileType.get_supported_file_types() if ft != FileType.UNKNOWN),
    key=lambda ft: ft.extension)

for file_type in supported_file_types:
    print(file_type.extension.ljust(8) + " - " + file_type.description)

See Also