Module glasswall.determine_file_type.successes

Expand source code
from glasswall.determine_file_type.classes import FileTypeEnumSuccess


# The file types that we support.
class ft_pdf(FileTypeEnumSuccess):
    integer = 16
    string = "pdf"


class ft_doc(FileTypeEnumSuccess):
    integer = 17
    string = "doc"


class ft_docx(FileTypeEnumSuccess):
    integer = 18
    string = "docx"


class ft_ppt(FileTypeEnumSuccess):
    integer = 19
    string = "ppt"


class ft_pptx(FileTypeEnumSuccess):
    integer = 20
    string = "pptx"


class ft_xls(FileTypeEnumSuccess):
    integer = 21
    string = "xls"


class ft_xlsx(FileTypeEnumSuccess):
    integer = 22
    string = "xlsx"


class ft_png(FileTypeEnumSuccess):
    integer = 23
    string = "png"


class ft_jpeg(FileTypeEnumSuccess):
    integer = 24
    string = "jpeg"


class ft_gif(FileTypeEnumSuccess):
    integer = 25
    string = "gif"


class ft_emf(FileTypeEnumSuccess):
    integer = 26
    string = "emf"


class ft_wmf(FileTypeEnumSuccess):
    integer = 27
    string = "wmf"


class ft_rtf(FileTypeEnumSuccess):
    integer = 28
    string = "rtf"


class ft_bmp(FileTypeEnumSuccess):
    integer = 29
    string = "bmp"


class ft_tiff(FileTypeEnumSuccess):
    integer = 30
    string = "tiff"


class ft_pe(FileTypeEnumSuccess):
    integer = 31
    string = "pe"


class ft_macho(FileTypeEnumSuccess):
    integer = 32
    string = "macho"


class ft_elf(FileTypeEnumSuccess):
    integer = 33
    string = "elf"


class ft_mp4(FileTypeEnumSuccess):
    integer = 34
    string = "mp4"


class ft_mp3(FileTypeEnumSuccess):
    integer = 35
    string = "mp3"


class ft_mp2(FileTypeEnumSuccess):
    integer = 36
    string = "mp2"


class ft_wav(FileTypeEnumSuccess):
    integer = 37
    string = "wav"


class ft_mpg(FileTypeEnumSuccess):
    integer = 38
    string = "mpg"


class ft_coff(FileTypeEnumSuccess):
    integer = 39
    string = "coff"


class ft_json(FileTypeEnumSuccess):
    integer = 40
    string = "json"


class ft_vbamacros(FileTypeEnumSuccess):
    integer = 41
    string = "vba"


class ft_svg(FileTypeEnumSuccess):
    integer = 42
    string = "svg"


class ft_webp(FileTypeEnumSuccess):
    integer = 43
    string = "webp"


# Supported by an external library.
class ft_zip(FileTypeEnumSuccess):
    integer = 256
    string = "zip"


class ft_gzip(FileTypeEnumSuccess):
    integer = 257
    string = "gzip"


class ft_bzip2(FileTypeEnumSuccess):
    integer = 258
    string = "bzip2"


class ft_7zip(FileTypeEnumSuccess):
    integer = 259
    string = "7zip"


class ft_rar(FileTypeEnumSuccess):
    integer = 260
    string = "rar"


class ft_tar(FileTypeEnumSuccess):
    integer = 261
    string = "tar"


# Required since they can be embedded within other files.
class ft_ooxml(FileTypeEnumSuccess):
    integer = 512
    string = "ooxml"


class ft_office(FileTypeEnumSuccess):
    integer = 513
    string = "office"


class ft_bin(FileTypeEnumSuccess):
    integer = 514
    string = "bin"


class ft_xml(FileTypeEnumSuccess):
    integer = 515
    string = "xml"


# Required for OOXML files wrapped in CFB packages.
class ft_docxPackageInCfb(FileTypeEnumSuccess):
    integer = 768
    string = "docxPackageInCfb"


class ft_xlsxPackageInCfb(FileTypeEnumSuccess):
    integer = 769
    string = "xlsxPackageInCfb"


class ft_pptxPackageInCfb(FileTypeEnumSuccess):
    integer = 770
    string = "pptxPackageInCfb"


# ExcelCoreStreams - our internal construct.
class ft_xlscore(FileTypeEnumSuccess):
    integer = 771
    string = "xlscore"


# WordCoreStreams - our internal construct.
class ft_doccore(FileTypeEnumSuccess):
    integer = 772
    string = "doccore"


# PowerPointCoreStreams - our internal construct.
class ft_pptcore(FileTypeEnumSuccess):
    integer = 773
    string = "pptcore"


# PowerPoint Picture Streams - our internal construct.
class ft_picturestream(FileTypeEnumSuccess):
    integer = 774
    string = "picturestream"


class ft_printersettings(FileTypeEnumSuccess):
    integer = 775
    string = "printersettings"


class ft_equationnative(FileTypeEnumSuccess):
    integer = 776
    string = "equationnative"


class ft_compobj(FileTypeEnumSuccess):
    integer = 777
    string = "compobj"


class ft_docsummary(FileTypeEnumSuccess):
    integer = 778
    string = "docsummary"


# Part of Structured File support. These are underlying mechanisms.
class ft_opc(FileTypeEnumSuccess):
    integer = 779
    string = "opc"


class ft_cfb(FileTypeEnumSuccess):
    integer = 780
    string = "cfb"


# The package used to store exported content in Glasswall.
class ft_interchangePackage(FileTypeEnumSuccess):
    integer = 781
    string = "interchangePackage"


# Required for "hybrid" PDF camera where a wrapper / dummy is required for calls to classic camera before Core2 camera.
class ft_pdf_core2(FileTypeEnumSuccess):
    integer = 782
    string = "pdf_core2"


class ft_fi(FileTypeEnumSuccess):
    integer = 783
    string = "fi"

Classes

class ft_7zip

Enumerations that correspond to a file type.

Expand source code
class ft_7zip(FileTypeEnumSuccess):
    integer = 259
    string = "7zip"

Ancestors

Class variables

var integer
var string
class ft_bin

Enumerations that correspond to a file type.

Expand source code
class ft_bin(FileTypeEnumSuccess):
    integer = 514
    string = "bin"

Ancestors

Class variables

var integer
var string
class ft_bmp

Enumerations that correspond to a file type.

Expand source code
class ft_bmp(FileTypeEnumSuccess):
    integer = 29
    string = "bmp"

Ancestors

Class variables

var integer
var string
class ft_bzip2

Enumerations that correspond to a file type.

Expand source code
class ft_bzip2(FileTypeEnumSuccess):
    integer = 258
    string = "bzip2"

Ancestors

Class variables

var integer
var string
class ft_cfb

Enumerations that correspond to a file type.

Expand source code
class ft_cfb(FileTypeEnumSuccess):
    integer = 780
    string = "cfb"

Ancestors

Class variables

var integer
var string
class ft_coff

Enumerations that correspond to a file type.

Expand source code
class ft_coff(FileTypeEnumSuccess):
    integer = 39
    string = "coff"

Ancestors

Class variables

var integer
var string
class ft_compobj

Enumerations that correspond to a file type.

Expand source code
class ft_compobj(FileTypeEnumSuccess):
    integer = 777
    string = "compobj"

Ancestors

Class variables

var integer
var string
class ft_doc

Enumerations that correspond to a file type.

Expand source code
class ft_doc(FileTypeEnumSuccess):
    integer = 17
    string = "doc"

Ancestors

Class variables

var integer
var string
class ft_doccore

Enumerations that correspond to a file type.

Expand source code
class ft_doccore(FileTypeEnumSuccess):
    integer = 772
    string = "doccore"

Ancestors

Class variables

var integer
var string
class ft_docsummary

Enumerations that correspond to a file type.

Expand source code
class ft_docsummary(FileTypeEnumSuccess):
    integer = 778
    string = "docsummary"

Ancestors

Class variables

var integer
var string
class ft_docx

Enumerations that correspond to a file type.

Expand source code
class ft_docx(FileTypeEnumSuccess):
    integer = 18
    string = "docx"

Ancestors

Class variables

var integer
var string
class ft_docxPackageInCfb

Enumerations that correspond to a file type.

Expand source code
class ft_docxPackageInCfb(FileTypeEnumSuccess):
    integer = 768
    string = "docxPackageInCfb"

Ancestors

Class variables

var integer
var string
class ft_elf

Enumerations that correspond to a file type.

Expand source code
class ft_elf(FileTypeEnumSuccess):
    integer = 33
    string = "elf"

Ancestors

Class variables

var integer
var string
class ft_emf

Enumerations that correspond to a file type.

Expand source code
class ft_emf(FileTypeEnumSuccess):
    integer = 26
    string = "emf"

Ancestors

Class variables

var integer
var string
class ft_equationnative

Enumerations that correspond to a file type.

Expand source code
class ft_equationnative(FileTypeEnumSuccess):
    integer = 776
    string = "equationnative"

Ancestors

Class variables

var integer
var string
class ft_fi

Enumerations that correspond to a file type.

Expand source code
class ft_fi(FileTypeEnumSuccess):
    integer = 783
    string = "fi"

Ancestors

Class variables

var integer
var string
class ft_gif

Enumerations that correspond to a file type.

Expand source code
class ft_gif(FileTypeEnumSuccess):
    integer = 25
    string = "gif"

Ancestors

Class variables

var integer
var string
class ft_gzip

Enumerations that correspond to a file type.

Expand source code
class ft_gzip(FileTypeEnumSuccess):
    integer = 257
    string = "gzip"

Ancestors

Class variables

var integer
var string
class ft_interchangePackage

Enumerations that correspond to a file type.

Expand source code
class ft_interchangePackage(FileTypeEnumSuccess):
    integer = 781
    string = "interchangePackage"

Ancestors

Class variables

var integer
var string
class ft_jpeg

Enumerations that correspond to a file type.

Expand source code
class ft_jpeg(FileTypeEnumSuccess):
    integer = 24
    string = "jpeg"

Ancestors

Class variables

var integer
var string
class ft_json

Enumerations that correspond to a file type.

Expand source code
class ft_json(FileTypeEnumSuccess):
    integer = 40
    string = "json"

Ancestors

Class variables

var integer
var string
class ft_macho

Enumerations that correspond to a file type.

Expand source code
class ft_macho(FileTypeEnumSuccess):
    integer = 32
    string = "macho"

Ancestors

Class variables

var integer
var string
class ft_mp2

Enumerations that correspond to a file type.

Expand source code
class ft_mp2(FileTypeEnumSuccess):
    integer = 36
    string = "mp2"

Ancestors

Class variables

var integer
var string
class ft_mp3

Enumerations that correspond to a file type.

Expand source code
class ft_mp3(FileTypeEnumSuccess):
    integer = 35
    string = "mp3"

Ancestors

Class variables

var integer
var string
class ft_mp4

Enumerations that correspond to a file type.

Expand source code
class ft_mp4(FileTypeEnumSuccess):
    integer = 34
    string = "mp4"

Ancestors

Class variables

var integer
var string
class ft_mpg

Enumerations that correspond to a file type.

Expand source code
class ft_mpg(FileTypeEnumSuccess):
    integer = 38
    string = "mpg"

Ancestors

Class variables

var integer
var string
class ft_office

Enumerations that correspond to a file type.

Expand source code
class ft_office(FileTypeEnumSuccess):
    integer = 513
    string = "office"

Ancestors

Class variables

var integer
var string
class ft_ooxml

Enumerations that correspond to a file type.

Expand source code
class ft_ooxml(FileTypeEnumSuccess):
    integer = 512
    string = "ooxml"

Ancestors

Class variables

var integer
var string
class ft_opc

Enumerations that correspond to a file type.

Expand source code
class ft_opc(FileTypeEnumSuccess):
    integer = 779
    string = "opc"

Ancestors

Class variables

var integer
var string
class ft_pdf

Enumerations that correspond to a file type.

Expand source code
class ft_pdf(FileTypeEnumSuccess):
    integer = 16
    string = "pdf"

Ancestors

Class variables

var integer
var string
class ft_pdf_core2

Enumerations that correspond to a file type.

Expand source code
class ft_pdf_core2(FileTypeEnumSuccess):
    integer = 782
    string = "pdf_core2"

Ancestors

Class variables

var integer
var string
class ft_pe

Enumerations that correspond to a file type.

Expand source code
class ft_pe(FileTypeEnumSuccess):
    integer = 31
    string = "pe"

Ancestors

Class variables

var integer
var string
class ft_picturestream

Enumerations that correspond to a file type.

Expand source code
class ft_picturestream(FileTypeEnumSuccess):
    integer = 774
    string = "picturestream"

Ancestors

Class variables

var integer
var string
class ft_png

Enumerations that correspond to a file type.

Expand source code
class ft_png(FileTypeEnumSuccess):
    integer = 23
    string = "png"

Ancestors

Class variables

var integer
var string
class ft_ppt

Enumerations that correspond to a file type.

Expand source code
class ft_ppt(FileTypeEnumSuccess):
    integer = 19
    string = "ppt"

Ancestors

Class variables

var integer
var string
class ft_pptcore

Enumerations that correspond to a file type.

Expand source code
class ft_pptcore(FileTypeEnumSuccess):
    integer = 773
    string = "pptcore"

Ancestors

Class variables

var integer
var string
class ft_pptx

Enumerations that correspond to a file type.

Expand source code
class ft_pptx(FileTypeEnumSuccess):
    integer = 20
    string = "pptx"

Ancestors

Class variables

var integer
var string
class ft_pptxPackageInCfb

Enumerations that correspond to a file type.

Expand source code
class ft_pptxPackageInCfb(FileTypeEnumSuccess):
    integer = 770
    string = "pptxPackageInCfb"

Ancestors

Class variables

var integer
var string
class ft_printersettings

Enumerations that correspond to a file type.

Expand source code
class ft_printersettings(FileTypeEnumSuccess):
    integer = 775
    string = "printersettings"

Ancestors

Class variables

var integer
var string
class ft_rar

Enumerations that correspond to a file type.

Expand source code
class ft_rar(FileTypeEnumSuccess):
    integer = 260
    string = "rar"

Ancestors

Class variables

var integer
var string
class ft_rtf

Enumerations that correspond to a file type.

Expand source code
class ft_rtf(FileTypeEnumSuccess):
    integer = 28
    string = "rtf"

Ancestors

Class variables

var integer
var string
class ft_svg

Enumerations that correspond to a file type.

Expand source code
class ft_svg(FileTypeEnumSuccess):
    integer = 42
    string = "svg"

Ancestors

Class variables

var integer
var string
class ft_tar

Enumerations that correspond to a file type.

Expand source code
class ft_tar(FileTypeEnumSuccess):
    integer = 261
    string = "tar"

Ancestors

Class variables

var integer
var string
class ft_tiff

Enumerations that correspond to a file type.

Expand source code
class ft_tiff(FileTypeEnumSuccess):
    integer = 30
    string = "tiff"

Ancestors

Class variables

var integer
var string
class ft_vbamacros

Enumerations that correspond to a file type.

Expand source code
class ft_vbamacros(FileTypeEnumSuccess):
    integer = 41
    string = "vba"

Ancestors

Class variables

var integer
var string
class ft_wav

Enumerations that correspond to a file type.

Expand source code
class ft_wav(FileTypeEnumSuccess):
    integer = 37
    string = "wav"

Ancestors

Class variables

var integer
var string
class ft_webp

Enumerations that correspond to a file type.

Expand source code
class ft_webp(FileTypeEnumSuccess):
    integer = 43
    string = "webp"

Ancestors

Class variables

var integer
var string
class ft_wmf

Enumerations that correspond to a file type.

Expand source code
class ft_wmf(FileTypeEnumSuccess):
    integer = 27
    string = "wmf"

Ancestors

Class variables

var integer
var string
class ft_xls

Enumerations that correspond to a file type.

Expand source code
class ft_xls(FileTypeEnumSuccess):
    integer = 21
    string = "xls"

Ancestors

Class variables

var integer
var string
class ft_xlscore

Enumerations that correspond to a file type.

Expand source code
class ft_xlscore(FileTypeEnumSuccess):
    integer = 771
    string = "xlscore"

Ancestors

Class variables

var integer
var string
class ft_xlsx

Enumerations that correspond to a file type.

Expand source code
class ft_xlsx(FileTypeEnumSuccess):
    integer = 22
    string = "xlsx"

Ancestors

Class variables

var integer
var string
class ft_xlsxPackageInCfb

Enumerations that correspond to a file type.

Expand source code
class ft_xlsxPackageInCfb(FileTypeEnumSuccess):
    integer = 769
    string = "xlsxPackageInCfb"

Ancestors

Class variables

var integer
var string
class ft_xml

Enumerations that correspond to a file type.

Expand source code
class ft_xml(FileTypeEnumSuccess):
    integer = 515
    string = "xml"

Ancestors

Class variables

var integer
var string
class ft_zip

Enumerations that correspond to a file type.

Expand source code
class ft_zip(FileTypeEnumSuccess):
    integer = 256
    string = "zip"

Ancestors

Class variables

var integer
var string