glasswall.determine_file_type.successes
1from glasswall.determine_file_type.classes import FileTypeEnumSuccess 2 3 4# The file types that we support. 5class ft_pdf(FileTypeEnumSuccess): 6 integer = 16 7 string = "pdf" 8 9 10class ft_doc(FileTypeEnumSuccess): 11 integer = 17 12 string = "doc" 13 14 15class ft_docx(FileTypeEnumSuccess): 16 integer = 18 17 string = "docx" 18 19 20class ft_ppt(FileTypeEnumSuccess): 21 integer = 19 22 string = "ppt" 23 24 25class ft_pptx(FileTypeEnumSuccess): 26 integer = 20 27 string = "pptx" 28 29 30class ft_xls(FileTypeEnumSuccess): 31 integer = 21 32 string = "xls" 33 34 35class ft_xlsx(FileTypeEnumSuccess): 36 integer = 22 37 string = "xlsx" 38 39 40class ft_png(FileTypeEnumSuccess): 41 integer = 23 42 string = "png" 43 44 45class ft_jpeg(FileTypeEnumSuccess): 46 integer = 24 47 string = "jpeg" 48 49 50class ft_gif(FileTypeEnumSuccess): 51 integer = 25 52 string = "gif" 53 54 55class ft_emf(FileTypeEnumSuccess): 56 integer = 26 57 string = "emf" 58 59 60class ft_wmf(FileTypeEnumSuccess): 61 integer = 27 62 string = "wmf" 63 64 65class ft_rtf(FileTypeEnumSuccess): 66 integer = 28 67 string = "rtf" 68 69 70class ft_bmp(FileTypeEnumSuccess): 71 integer = 29 72 string = "bmp" 73 74 75class ft_tiff(FileTypeEnumSuccess): 76 integer = 30 77 string = "tiff" 78 79 80class ft_pe(FileTypeEnumSuccess): 81 integer = 31 82 string = "pe" 83 84 85class ft_macho(FileTypeEnumSuccess): 86 integer = 32 87 string = "macho" 88 89 90class ft_elf(FileTypeEnumSuccess): 91 integer = 33 92 string = "elf" 93 94 95class ft_mp4(FileTypeEnumSuccess): 96 integer = 34 97 string = "mp4" 98 99 100class ft_mp3(FileTypeEnumSuccess): 101 integer = 35 102 string = "mp3" 103 104 105class ft_mp2(FileTypeEnumSuccess): 106 integer = 36 107 string = "mp2" 108 109 110class ft_wav(FileTypeEnumSuccess): 111 integer = 37 112 string = "wav" 113 114 115class ft_mpg(FileTypeEnumSuccess): 116 integer = 38 117 string = "mpg" 118 119 120class ft_coff(FileTypeEnumSuccess): 121 integer = 39 122 string = "coff" 123 124 125class ft_json(FileTypeEnumSuccess): 126 integer = 40 127 string = "json" 128 129 130class ft_vbamacros(FileTypeEnumSuccess): 131 integer = 41 132 string = "vba" 133 134 135class ft_svg(FileTypeEnumSuccess): 136 integer = 42 137 string = "svg" 138 139 140class ft_webp(FileTypeEnumSuccess): 141 integer = 43 142 string = "webp" 143 144 145class ft_dylib(FileTypeEnumSuccess): 146 integer = 44 147 string = "dylib" 148 149 150class ft_utf8(FileTypeEnumSuccess): 151 integer = 45 152 string = "utf8" 153 154 155class ft_ascii(FileTypeEnumSuccess): 156 integer = 46 157 string = "ascii" 158 159 160# Supported by an external library. 161class ft_zip(FileTypeEnumSuccess): 162 integer = 256 163 string = "zip" 164 165 166class ft_gzip(FileTypeEnumSuccess): 167 integer = 257 168 string = "gz" 169 170 171class ft_bzip2(FileTypeEnumSuccess): 172 integer = 258 173 string = "bz2" 174 175 176class ft_7zip(FileTypeEnumSuccess): 177 integer = 259 178 string = "7z" 179 180 181class ft_rar(FileTypeEnumSuccess): 182 integer = 260 183 string = "rar" 184 185 186class ft_tar(FileTypeEnumSuccess): 187 integer = 261 188 string = "tar" 189 190 191class ft_xz(FileTypeEnumSuccess): 192 integer = 262 193 string = "xz" 194 195 196# Required since they can be embedded within other files. 197class ft_ooxml(FileTypeEnumSuccess): 198 integer = 512 199 string = "ooxml" 200 201 202class ft_office(FileTypeEnumSuccess): 203 integer = 513 204 string = "office" 205 206 207class ft_bin(FileTypeEnumSuccess): 208 integer = 514 209 string = "bin" 210 211 212class ft_xml(FileTypeEnumSuccess): 213 integer = 515 214 string = "xml" 215 216 217# Required for OOXML files wrapped in CFB packages. 218class ft_docxPackageInCfb(FileTypeEnumSuccess): 219 integer = 768 220 string = "docxPackageInCfb" 221 222 223class ft_xlsxPackageInCfb(FileTypeEnumSuccess): 224 integer = 769 225 string = "xlsxPackageInCfb" 226 227 228class ft_pptxPackageInCfb(FileTypeEnumSuccess): 229 integer = 770 230 string = "pptxPackageInCfb" 231 232 233# ExcelCoreStreams - our internal construct. 234class ft_xlscore(FileTypeEnumSuccess): 235 integer = 771 236 string = "xlscore" 237 238 239# WordCoreStreams - our internal construct. 240class ft_doccore(FileTypeEnumSuccess): 241 integer = 772 242 string = "doccore" 243 244 245# PowerPointCoreStreams - our internal construct. 246class ft_pptcore(FileTypeEnumSuccess): 247 integer = 773 248 string = "pptcore" 249 250 251# PowerPoint Picture Streams - our internal construct. 252class ft_picturestream(FileTypeEnumSuccess): 253 integer = 774 254 string = "picturestream" 255 256 257class ft_printersettings(FileTypeEnumSuccess): 258 integer = 775 259 string = "printersettings" 260 261 262class ft_equationnative(FileTypeEnumSuccess): 263 integer = 776 264 string = "equationnative" 265 266 267class ft_compobj(FileTypeEnumSuccess): 268 integer = 777 269 string = "compobj" 270 271 272class ft_docsummary(FileTypeEnumSuccess): 273 integer = 778 274 string = "docsummary" 275 276 277# Part of Structured File support. These are underlying mechanisms. 278class ft_opc(FileTypeEnumSuccess): 279 integer = 779 280 string = "opc" 281 282 283class ft_cfb(FileTypeEnumSuccess): 284 integer = 780 285 string = "cfb" 286 287 288# The package used to store exported content in Glasswall. 289class ft_interchangePackage(FileTypeEnumSuccess): 290 integer = 781 291 string = "interchangePackage" 292 293 294# Required for "hybrid" PDF camera where a wrapper / dummy is required for calls to classic camera before Core2 camera. 295class ft_pdf_core2(FileTypeEnumSuccess): 296 integer = 782 297 string = "pdf_core2" 298 299 300# File Identification Camera 301class ft_fi(FileTypeEnumSuccess): 302 integer = 783 303 string = "fi" 304 305 306class ft_pdfContentStream(FileTypeEnumSuccess): 307 integer = 784 308 string = "pdfContentStream" 309 310 311# Rebuild Camera 312class ft_rebuild(FileTypeEnumSuccess): 313 integer = 785 314 string = "rebuild" 315 316 317# Glasswall Lens 318class ft_gwlens(FileTypeEnumSuccess): 319 integer = 786 320 string = "gwlens"
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
221class ft_docxPackageInCfb(FileTypeEnumSuccess): 222 integer = 768 223 string = "docxPackageInCfb"
Enumerations that correspond to a file type.
226class ft_xlsxPackageInCfb(FileTypeEnumSuccess): 227 integer = 769 228 string = "xlsxPackageInCfb"
Enumerations that correspond to a file type.
231class ft_pptxPackageInCfb(FileTypeEnumSuccess): 232 integer = 770 233 string = "pptxPackageInCfb"
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
292class ft_interchangePackage(FileTypeEnumSuccess): 293 integer = 781 294 string = "interchangePackage"
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
309class ft_pdfContentStream(FileTypeEnumSuccess): 310 integer = 784 311 string = "pdfContentStream"
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.
Enumerations that correspond to a file type.