Skip to content

API Reference

This page contains the complete API documentation for the mime-enum package, automatically generated from the source code docstrings.

Core Functions

Parse a MIME type string to a MimeType enum.

Performs strict parsing with the following behavior:

  • Strips parameters (e.g., 'application/json; charset=utf-8' becomes 'application/json')
  • Normalizes known aliases to their canonical form
  • Case-insensitive matching
  • Raises ValueError for unknown MIME types

Parameters:

Name Type Description Default
value str

The MIME type string to parse (e.g., 'application/json')

required

Returns:

Type Description
MimeType

The corresponding MimeType enum value

Raises:

Type Description
ValueError

If the MIME type is empty, malformed, or unknown

Examples:

>>> parse('application/json')
MimeType.APPLICATION_JSON
>>> parse('application/json; charset=utf-8')
MimeType.APPLICATION_JSON
>>> parse('text/json')  # alias normalization
MimeType.APPLICATION_JSON
Source code in src/mime_enum/core.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
def parse(value: str) -> MimeType:
    """Parse a MIME type string to a MimeType enum.

    Performs strict parsing with the following behavior:

    - Strips parameters (e.g., 'application/json; charset=utf-8' becomes 'application/json')
    - Normalizes known aliases to their canonical form
    - Case-insensitive matching
    - Raises ValueError for unknown MIME types

    Args:
        value: The MIME type string to parse (e.g., 'application/json')

    Returns:
        The corresponding MimeType enum value

    Raises:
        ValueError: If the MIME type is empty, malformed, or unknown

    Examples:
        >>> parse('application/json')
        MimeType.APPLICATION_JSON
        >>> parse('application/json; charset=utf-8')
        MimeType.APPLICATION_JSON
        >>> parse('text/json')  # alias normalization
        MimeType.APPLICATION_JSON
    """
    if not value:
        raise ValueError("Empty MIME string")  # noqa: TRY003
    core = _strip_params(value)
    if core in _ALIASES:
        return _ALIASES[core]
    try:
        return MimeType(core)
    except ValueError as exc:
        raise ValueError(f"Unknown MIME type: {value!r}") from exc  # noqa: TRY003

Parse a MIME type string, returning None for unknown types.

Similar to parse() but returns None instead of raising ValueError for unknown or empty MIME type strings.

Parameters:

Name Type Description Default
value str

The MIME type string to parse (e.g., 'application/json')

required

Returns:

Type Description
MimeType | None

The corresponding MimeType enum value, or None if unknown/empty

Examples:

>>> try_parse('application/json')
MimeType.APPLICATION_JSON
>>> try_parse('unknown/type')
None
>>> try_parse('')
None
Source code in src/mime_enum/core.py
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
def try_parse(value: str) -> MimeType | None:
    """Parse a MIME type string, returning None for unknown types.

    Similar to parse() but returns None instead of raising ValueError
    for unknown or empty MIME type strings.

    Args:
        value: The MIME type string to parse (e.g., 'application/json')

    Returns:
        The corresponding MimeType enum value, or None if unknown/empty

    Examples:
        >>> try_parse('application/json')
        MimeType.APPLICATION_JSON
        >>> try_parse('unknown/type')
        None
        >>> try_parse('')
        None
    """
    if not value:
        return None
    core = _strip_params(value)
    if core in _ALIASES:
        return _ALIASES[core]
    try:
        return MimeType(core)
    except ValueError:
        return None

Get MIME type from a file extension.

Performs case-insensitive lookup of MIME types by file extension. Handles extensions with or without leading dot.

Parameters:

Name Type Description Default
ext str

File extension (e.g., 'json', '.json', 'PDF', '.PDF')

required

Returns:

Type Description
MimeType | None

The corresponding MimeType enum value, or None if extension is unknown

Note

This function only looks at the file extension and does NOT examine actual file content. Files can have incorrect or missing extensions, making this method unreliable for security-critical applications.

For content-based MIME type detection, consider using packages like:

  • python-magic (libmagic wrapper)
  • filetype (pure Python file type detection)

Examples:

>>> from_extension('json')
MimeType.APPLICATION_JSON
>>> from_extension('.pdf')
MimeType.APPLICATION_PDF
>>> from_extension('unknown')
None
Source code in src/mime_enum/core.py
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
def from_extension(ext: str) -> MimeType | None:
    """Get MIME type from a file extension.

    Performs case-insensitive lookup of MIME types by file extension.
    Handles extensions with or without leading dot.

    Args:
        ext: File extension (e.g., 'json', '.json', 'PDF', '.PDF')

    Returns:
        The corresponding MimeType enum value, or None if extension is unknown

    Note:
        This function only looks at the file extension and does NOT examine
        actual file content. Files can have incorrect or missing extensions,
        making this method unreliable for security-critical applications.

        For content-based MIME type detection, consider using packages like:

        - `python-magic` (libmagic wrapper)
        - `filetype` (pure Python file type detection)

    Examples:
        >>> from_extension('json')
        MimeType.APPLICATION_JSON
        >>> from_extension('.pdf')
        MimeType.APPLICATION_PDF
        >>> from_extension('unknown')
        None
    """
    if not ext:
        return None

    token = ext.lstrip(".").lower()
    return _EXT_TO_MIME.get(token)

Get MIME type from a file path or filename.

Extracts the file extension from the path and looks up the corresponding MIME type. Uses the last extension for compound extensions (e.g., 'file.tar.gz' uses '.gz').

Parameters:

Name Type Description Default
path str | Path

File path or filename (str or Path object)

required

Returns:

Type Description
MimeType | None

The corresponding MimeType enum value, or None if no extension

MimeType | None

or unknown extension

Warning

This function is purely extension-based and does NOT read or examine the actual file content. This can be unreliable because:

  • Files may have incorrect extensions (e.g., .txt file containing JSON)
  • Files may be renamed with wrong extensions
  • Files without extensions will return None
  • Malicious files can masquerade with fake extensions

For accurate MIME type detection based on file signatures/magic bytes, use content-based detection libraries like python-magic or filetype.

Examples:

>>> from_path('/tmp/document.pdf')
MimeType.APPLICATION_PDF
>>> from_path('data.json')
MimeType.APPLICATION_JSON
>>> from_path('file_without_extension')
None
Source code in src/mime_enum/core.py
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
def from_path(path: str | Path) -> MimeType | None:
    """Get MIME type from a file path or filename.

    Extracts the file extension from the path and looks up the
    corresponding MIME type. Uses the last extension for compound
    extensions (e.g., 'file.tar.gz' uses '.gz').

    Args:
        path: File path or filename (str or Path object)

    Returns:
        The corresponding MimeType enum value, or None if no extension
        or unknown extension

    Warning:
        This function is purely extension-based and does NOT read or examine
        the actual file content. This can be unreliable because:

        - Files may have incorrect extensions (e.g., .txt file containing JSON)
        - Files may be renamed with wrong extensions
        - Files without extensions will return None
        - Malicious files can masquerade with fake extensions

        For accurate MIME type detection based on file signatures/magic bytes,
        use content-based detection libraries like `python-magic` or `filetype`.

    Examples:
        >>> from_path('/tmp/document.pdf')
        MimeType.APPLICATION_PDF
        >>> from_path('data.json')
        MimeType.APPLICATION_JSON
        >>> from_path('file_without_extension')
        None
    """
    if not path:
        return None

    p = Path(path)
    if not p.suffix:
        return None

    return from_extension(p.suffix)

MimeType Enum

Bases: StrEnum

MIME type enumeration with associated file extensions.

Auto-generated enum containing standard MIME types as string values. Each enum member has an associated .extensions attribute containing a tuple of common file extensions for that MIME type.

The enum values are the official MIME type strings (e.g., 'application/json'), and can be used directly as strings in HTTP headers, content-type detection, and other applications.

Attributes:

Name Type Description
extensions

Tuple of file extensions associated with this MIME type

Examples:

>>> MimeType.APPLICATION_JSON
'application/json'
>>> MimeType.APPLICATION_JSON.extensions
('json',)
>>> str(MimeType.TEXT_HTML)
'text/html'
Source code in src/mime_enum/mimetype.py
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
class MimeType(StrEnum):
    """MIME type enumeration with associated file extensions.

    Auto-generated enum containing standard MIME types as string values.
    Each enum member has an associated `.extensions` attribute containing
    a tuple of common file extensions for that MIME type.

    The enum values are the official MIME type strings (e.g., 'application/json'),
    and can be used directly as strings in HTTP headers, content-type detection,
    and other applications.

    Attributes:
        extensions: Tuple of file extensions associated with this MIME type

    Examples:
        >>> MimeType.APPLICATION_JSON
        'application/json'
        >>> MimeType.APPLICATION_JSON.extensions
        ('json',)
        >>> str(MimeType.TEXT_HTML)
        'text/html'
    """

    def __new__(cls, value: str, extensions: tuple[str, ...] = ()):  # type: ignore[override]
        obj = str.__new__(cls, value)
        obj._value_ = value
        obj.extensions = extensions
        return obj

    APPLICATION_ANDREW_INSET = ("application/andrew-inset", ("ez",))
    APPLICATION_APPLIXWARE = ("application/applixware", ("aw",))
    APPLICATION_ATOM_XML = ("application/atom+xml", ("atom",))
    APPLICATION_ATOMCAT_XML = ("application/atomcat+xml", ("atomcat",))
    APPLICATION_ATOMSVC_XML = ("application/atomsvc+xml", ("atomsvc",))
    APPLICATION_CCXML_XML = ("application/ccxml+xml", ("ccxml",))
    APPLICATION_CU_SEEME = ("application/cu-seeme", ("cu",))
    APPLICATION_DAVMOUNT_XML = ("application/davmount+xml", ("davmount",))
    APPLICATION_ECMASCRIPT = ("application/ecmascript", ("ecma",))
    APPLICATION_EMMA_XML = ("application/emma+xml", ("emma",))
    APPLICATION_EPUB_ZIP = ("application/epub+zip", ("epub",))
    APPLICATION_FONT_TDPFR = ("application/font-tdpfr", ("pfr",))
    APPLICATION_GZIP = ("application/gzip", ("gz", "tgz"))
    APPLICATION_HYPERSTUDIO = ("application/hyperstudio", ("stk",))
    APPLICATION_JAVA_ARCHIVE = ("application/java-archive", ("jar",))
    APPLICATION_JAVA_SERIALIZED_OBJECT = ("application/java-serialized-object", ("ser",))
    APPLICATION_JAVA_VM = ("application/java-vm", ("class",))
    APPLICATION_JSON = ("application/json", ("json",))
    APPLICATION_LOST_XML = ("application/lost+xml", ("lostxml",))
    APPLICATION_MAC_BINHEX40 = ("application/mac-binhex40", ("hqx",))
    APPLICATION_MAC_COMPACTPRO = ("application/mac-compactpro", ("cpt",))
    APPLICATION_MARC = ("application/marc", ("mrc",))
    APPLICATION_MATHEMATICA = ("application/mathematica", ("ma", "mb", "nb"))
    APPLICATION_MATHML_XML = ("application/mathml+xml", ("mathml", "mml"))
    APPLICATION_MBOX = ("application/mbox", ("mbox",))
    APPLICATION_MEDIASERVERCONTROL_XML = ("application/mediaservercontrol+xml", ("mscml",))
    APPLICATION_MP4 = ("application/mp4", ("mp4s",))
    APPLICATION_MSWORD = ("application/msword", ("doc", "dot", "wiz"))
    APPLICATION_MXF = ("application/mxf", ("mxf",))
    APPLICATION_OCTET_STREAM = (
        "application/octet-stream",
        (
            "a",
            "bin",
            "bpk",
            "deploy",
            "dist",
            "distz",
            "dmg",
            "dms",
            "dump",
            "elc",
            "lha",
            "lrf",
            "lzh",
            "o",
            "obj",
            "pkg",
            "so",
        ),
    )
    APPLICATION_ODA = ("application/oda", ("oda",))
    APPLICATION_OEBPS_PACKAGE_XML = ("application/oebps-package+xml", ("opf",))
    APPLICATION_OGG = ("application/ogg", ("ogx",))
    APPLICATION_ONENOTE = ("application/onenote", ("onepkg", "onetmp", "onetoc", "onetoc2"))
    APPLICATION_PATCH_OPS_ERROR_XML = ("application/patch-ops-error+xml", ("xer",))
    APPLICATION_PDF = ("application/pdf", ("pdf",))
    APPLICATION_PGP_ENCRYPTED = ("application/pgp-encrypted", ("pgp",))
    APPLICATION_PGP_SIGNATURE = ("application/pgp-signature", ("asc", "sig"))
    APPLICATION_PICS_RULES = ("application/pics-rules", ("prf",))
    APPLICATION_PKCS10 = ("application/pkcs10", ("p10",))
    APPLICATION_PKCS7_MIME = ("application/pkcs7-mime", ("p7c", "p7m"))
    APPLICATION_PKCS7_SIGNATURE = ("application/pkcs7-signature", ("p7s",))
    APPLICATION_PKIX_CERT = ("application/pkix-cert", ("cer",))
    APPLICATION_PKIX_CRL = ("application/pkix-crl", ("crl",))
    APPLICATION_PKIX_PKIPATH = ("application/pkix-pkipath", ("pkipath",))
    APPLICATION_PKIXCMP = ("application/pkixcmp", ("pki",))
    APPLICATION_PLS_XML = ("application/pls+xml", ("pls",))
    APPLICATION_POSTSCRIPT = ("application/postscript", ("ai", "eps", "ps"))
    APPLICATION_PRQL = ("application/prql", ("prql",))
    APPLICATION_PRS_CWW = ("application/prs.cww", ("cww",))
    APPLICATION_RDF_XML = ("application/rdf+xml", ("rdf",))
    APPLICATION_REGINFO_XML = ("application/reginfo+xml", ("rif",))
    APPLICATION_RELAX_NG_COMPACT_SYNTAX = ("application/relax-ng-compact-syntax", ("rnc",))
    APPLICATION_RESOURCE_LISTS_XML = ("application/resource-lists+xml", ("rl",))
    APPLICATION_RESOURCE_LISTS_DIFF_XML = ("application/resource-lists-diff+xml", ("rld",))
    APPLICATION_RLS_SERVICES_XML = ("application/rls-services+xml", ("rs",))
    APPLICATION_RSD_XML = ("application/rsd+xml", ("rsd",))
    APPLICATION_RSS_XML = ("application/rss+xml", ("rss", "xml"))
    APPLICATION_RTF = ("application/rtf", ("rtf",))
    APPLICATION_SBML_XML = ("application/sbml+xml", ("sbml",))
    APPLICATION_SCVP_CV_REQUEST = ("application/scvp-cv-request", ("scq",))
    APPLICATION_SCVP_CV_RESPONSE = ("application/scvp-cv-response", ("scs",))
    APPLICATION_SCVP_VP_REQUEST = ("application/scvp-vp-request", ("spq",))
    APPLICATION_SCVP_VP_RESPONSE = ("application/scvp-vp-response", ("spp",))
    APPLICATION_SDP = ("application/sdp", ("sdp",))
    APPLICATION_SET_PAYMENT_INITIATION = ("application/set-payment-initiation", ("setpay",))
    APPLICATION_SET_REGISTRATION_INITIATION = ("application/set-registration-initiation", ("setreg",))
    APPLICATION_SHF_XML = ("application/shf+xml", ("shf",))
    APPLICATION_SMIL_XML = ("application/smil+xml", ("smi", "smil"))
    APPLICATION_SPARQL_QUERY = ("application/sparql-query", ("rq",))
    APPLICATION_SPARQL_RESULTS_XML = ("application/sparql-results+xml", ("srx",))
    APPLICATION_SRGS = ("application/srgs", ("gram",))
    APPLICATION_SRGS_XML = ("application/srgs+xml", ("grxml",))
    APPLICATION_SSML_XML = ("application/ssml+xml", ("ssml",))
    APPLICATION_VND_3GPP_PIC_BW_LARGE = ("application/vnd.3gpp.pic-bw-large", ("plb",))
    APPLICATION_VND_3GPP_PIC_BW_SMALL = ("application/vnd.3gpp.pic-bw-small", ("psb",))
    APPLICATION_VND_3GPP_PIC_BW_VAR = ("application/vnd.3gpp.pic-bw-var", ("pvb",))
    APPLICATION_VND_3GPP2_TCAP = ("application/vnd.3gpp2.tcap", ("tcap",))
    APPLICATION_VND_3M_POST_IT_NOTES = ("application/vnd.3m.post-it-notes", ("pwn",))
    APPLICATION_VND_ACCPAC_SIMPLY_ASO = ("application/vnd.accpac.simply.aso", ("aso",))
    APPLICATION_VND_ACCPAC_SIMPLY_IMP = ("application/vnd.accpac.simply.imp", ("imp",))
    APPLICATION_VND_ACUCOBOL = ("application/vnd.acucobol", ("acu",))
    APPLICATION_VND_ACUCORP = ("application/vnd.acucorp", ("acutc", "atc"))
    APPLICATION_VND_ADOBE_AIR_APPLICATION_INSTALLER_PACKAGE_ZIP = (
        "application/vnd.adobe.air-application-installer-package+zip",
        ("air",),
    )
    APPLICATION_VND_ADOBE_XDP_XML = ("application/vnd.adobe.xdp+xml", ("xdp",))
    APPLICATION_VND_ADOBE_XFDF = ("application/vnd.adobe.xfdf", ("xfdf",))
    APPLICATION_VND_AIRZIP_FILESECURE_AZF = ("application/vnd.airzip.filesecure.azf", ("azf",))
    APPLICATION_VND_AIRZIP_FILESECURE_AZS = ("application/vnd.airzip.filesecure.azs", ("azs",))
    APPLICATION_VND_AMAZON_EBOOK = ("application/vnd.amazon.ebook", ("azw",))
    APPLICATION_VND_AMERICANDYNAMICS_ACC = ("application/vnd.americandynamics.acc", ("acc",))
    APPLICATION_VND_AMIGA_AMI = ("application/vnd.amiga.ami", ("ami",))
    APPLICATION_VND_ANDROID_PACKAGE_ARCHIVE = ("application/vnd.android.package-archive", ("apk",))
    APPLICATION_VND_ANSER_WEB_CERTIFICATE_ISSUE_INITIATION = (
        "application/vnd.anser-web-certificate-issue-initiation",
        ("cii",),
    )
    APPLICATION_VND_ANSER_WEB_FUNDS_TRANSFER_INITIATION = (
        "application/vnd.anser-web-funds-transfer-initiation",
        ("fti",),
    )
    APPLICATION_VND_ANTIX_GAME_COMPONENT = ("application/vnd.antix.game-component", ("atx",))
    APPLICATION_VND_APPLE_INSTALLER_XML = ("application/vnd.apple.installer+xml", ("mpkg",))
    APPLICATION_VND_ARASTRA_SWI = ("application/vnd.arastra.swi", ("swi",))
    APPLICATION_VND_AUDIOGRAPH = ("application/vnd.audiograph", ("aep",))
    APPLICATION_VND_BLUEICE_MULTIPASS = ("application/vnd.blueice.multipass", ("mpm",))
    APPLICATION_VND_BMI = ("application/vnd.bmi", ("bmi",))
    APPLICATION_VND_BUSINESSOBJECTS = ("application/vnd.businessobjects", ("rep",))
    APPLICATION_VND_CHEMDRAW_XML = ("application/vnd.chemdraw+xml", ("cdxml",))
    APPLICATION_VND_CHIPNUTS_KARAOKE_MMD = ("application/vnd.chipnuts.karaoke-mmd", ("mmd",))
    APPLICATION_VND_CINDERELLA = ("application/vnd.cinderella", ("cdy",))
    APPLICATION_VND_CLAYMORE = ("application/vnd.claymore", ("cla",))
    APPLICATION_VND_CLONK_C4GROUP = ("application/vnd.clonk.c4group", ("c4d", "c4f", "c4g", "c4p", "c4u"))
    APPLICATION_VND_COMMONSPACE = ("application/vnd.commonspace", ("csp",))
    APPLICATION_VND_CONTACT_CMSG = ("application/vnd.contact.cmsg", ("cdbcmsg",))
    APPLICATION_VND_COSMOCALLER = ("application/vnd.cosmocaller", ("cmc",))
    APPLICATION_VND_CRICK_CLICKER = ("application/vnd.crick.clicker", ("clkx",))
    APPLICATION_VND_CRICK_CLICKER_KEYBOARD = ("application/vnd.crick.clicker.keyboard", ("clkk",))
    APPLICATION_VND_CRICK_CLICKER_PALETTE = ("application/vnd.crick.clicker.palette", ("clkp",))
    APPLICATION_VND_CRICK_CLICKER_TEMPLATE = ("application/vnd.crick.clicker.template", ("clkt",))
    APPLICATION_VND_CRICK_CLICKER_WORDBANK = ("application/vnd.crick.clicker.wordbank", ("clkw",))
    APPLICATION_VND_CRITICALTOOLS_WBS_XML = ("application/vnd.criticaltools.wbs+xml", ("wbs",))
    APPLICATION_VND_CTC_POSML = ("application/vnd.ctc-posml", ("pml",))
    APPLICATION_VND_CUPS_PPD = ("application/vnd.cups-ppd", ("ppd",))
    APPLICATION_VND_CURL_CAR = ("application/vnd.curl.car", ("car",))
    APPLICATION_VND_CURL_PCURL = ("application/vnd.curl.pcurl", ("pcurl",))
    APPLICATION_VND_DATA_VISION_RDZ = ("application/vnd.data-vision.rdz", ("rdz",))
    APPLICATION_VND_DEBIAN_BINARY_PACKAGE = ("application/vnd.debian.binary-package", ("deb", "udeb"))
    APPLICATION_VND_DENOVO_FCSELAYOUT_LINK = ("application/vnd.denovo.fcselayout-link", ("fe_launch",))
    APPLICATION_VND_DNA = ("application/vnd.dna", ("dna",))
    APPLICATION_VND_DOLBY_MLP = ("application/vnd.dolby.mlp", ("mlp",))
    APPLICATION_VND_DPGRAPH = ("application/vnd.dpgraph", ("dpg",))
    APPLICATION_VND_DREAMFACTORY = ("application/vnd.dreamfactory", ("dfac",))
    APPLICATION_VND_DYNAGEO = ("application/vnd.dynageo", ("geo",))
    APPLICATION_VND_ECOWIN_CHART = ("application/vnd.ecowin.chart", ("mag",))
    APPLICATION_VND_ENLIVEN = ("application/vnd.enliven", ("nml",))
    APPLICATION_VND_EPSON_ESF = ("application/vnd.epson.esf", ("esf",))
    APPLICATION_VND_EPSON_MSF = ("application/vnd.epson.msf", ("msf",))
    APPLICATION_VND_EPSON_QUICKANIME = ("application/vnd.epson.quickanime", ("qam",))
    APPLICATION_VND_EPSON_SALT = ("application/vnd.epson.salt", ("slt",))
    APPLICATION_VND_EPSON_SSF = ("application/vnd.epson.ssf", ("ssf",))
    APPLICATION_VND_ESZIGNO3_XML = ("application/vnd.eszigno3+xml", ("es3", "et3"))
    APPLICATION_VND_EZPIX_ALBUM = ("application/vnd.ezpix-album", ("ez2",))
    APPLICATION_VND_EZPIX_PACKAGE = ("application/vnd.ezpix-package", ("ez3",))
    APPLICATION_VND_FDF = ("application/vnd.fdf", ("fdf",))
    APPLICATION_VND_FDSN_MSEED = ("application/vnd.fdsn.mseed", ("mseed",))
    APPLICATION_VND_FDSN_SEED = ("application/vnd.fdsn.seed", ("dataless", "seed"))
    APPLICATION_VND_FLOGRAPHIT = ("application/vnd.flographit", ("gph",))
    APPLICATION_VND_FLUXTIME_CLIP = ("application/vnd.fluxtime.clip", ("ftc",))
    APPLICATION_VND_FRAMEMAKER = ("application/vnd.framemaker", ("book", "fm", "frame", "maker"))
    APPLICATION_VND_FROGANS_FNC = ("application/vnd.frogans.fnc", ("fnc",))
    APPLICATION_VND_FROGANS_LTF = ("application/vnd.frogans.ltf", ("ltf",))
    APPLICATION_VND_FSC_WEBLAUNCH = ("application/vnd.fsc.weblaunch", ("fsc",))
    APPLICATION_VND_FUJITSU_OASYS = ("application/vnd.fujitsu.oasys", ("oas",))
    APPLICATION_VND_FUJITSU_OASYS2 = ("application/vnd.fujitsu.oasys2", ("oa2",))
    APPLICATION_VND_FUJITSU_OASYS3 = ("application/vnd.fujitsu.oasys3", ("oa3",))
    APPLICATION_VND_FUJITSU_OASYSGP = ("application/vnd.fujitsu.oasysgp", ("fg5",))
    APPLICATION_VND_FUJITSU_OASYSPRS = ("application/vnd.fujitsu.oasysprs", ("bh2",))
    APPLICATION_VND_FUJIXEROX_DDD = ("application/vnd.fujixerox.ddd", ("ddd",))
    APPLICATION_VND_FUJIXEROX_DOCUWORKS = ("application/vnd.fujixerox.docuworks", ("xdw",))
    APPLICATION_VND_FUJIXEROX_DOCUWORKS_BINDER = ("application/vnd.fujixerox.docuworks.binder", ("xbd",))
    APPLICATION_VND_FUZZYSHEET = ("application/vnd.fuzzysheet", ("fzs",))
    APPLICATION_VND_GENOMATIX_TUXEDO = ("application/vnd.genomatix.tuxedo", ("txd",))
    APPLICATION_VND_GEOGEBRA_FILE = ("application/vnd.geogebra.file", ("ggb",))
    APPLICATION_VND_GEOGEBRA_TOOL = ("application/vnd.geogebra.tool", ("ggt",))
    APPLICATION_VND_GEOMETRY_EXPLORER = ("application/vnd.geometry-explorer", ("gex", "gre"))
    APPLICATION_VND_GERBER = ("application/vnd.gerber", ("gbr",))
    APPLICATION_VND_GMX = ("application/vnd.gmx", ("gmx",))
    APPLICATION_VND_GOOGLE_EARTH_KML_XML = ("application/vnd.google-earth.kml+xml", ("kml",))
    APPLICATION_VND_GOOGLE_EARTH_KMZ = ("application/vnd.google-earth.kmz", ("kmz",))
    APPLICATION_VND_GRAFEQ = ("application/vnd.grafeq", ("gqf", "gqs"))
    APPLICATION_VND_GROOVE_ACCOUNT = ("application/vnd.groove-account", ("gac",))
    APPLICATION_VND_GROOVE_HELP = ("application/vnd.groove-help", ("ghf",))
    APPLICATION_VND_GROOVE_IDENTITY_MESSAGE = ("application/vnd.groove-identity-message", ("gim",))
    APPLICATION_VND_GROOVE_INJECTOR = ("application/vnd.groove-injector", ("grv",))
    APPLICATION_VND_GROOVE_TOOL_MESSAGE = ("application/vnd.groove-tool-message", ("gtm",))
    APPLICATION_VND_GROOVE_TOOL_TEMPLATE = ("application/vnd.groove-tool-template", ("tpl",))
    APPLICATION_VND_GROOVE_VCARD = ("application/vnd.groove-vcard", ("vcg",))
    APPLICATION_VND_HANDHELD_ENTERTAINMENT_XML = ("application/vnd.handheld-entertainment+xml", ("zmm",))
    APPLICATION_VND_HBCI = ("application/vnd.hbci", ("hbci",))
    APPLICATION_VND_HHE_LESSON_PLAYER = ("application/vnd.hhe.lesson-player", ("les",))
    APPLICATION_VND_HP_HPGL = ("application/vnd.hp-hpgl", ("hpgl",))
    APPLICATION_VND_HP_HPID = ("application/vnd.hp-hpid", ("hpid",))
    APPLICATION_VND_HP_HPS = ("application/vnd.hp-hps", ("hps",))
    APPLICATION_VND_HP_JLYT = ("application/vnd.hp-jlyt", ("jlt",))
    APPLICATION_VND_HP_PCL = ("application/vnd.hp-pcl", ("pcl",))
    APPLICATION_VND_HP_PCLXL = ("application/vnd.hp-pclxl", ("pclxl",))
    APPLICATION_VND_HYDROSTATIX_SOF_DATA = ("application/vnd.hydrostatix.sof-data", ("sfd-hdstx",))
    APPLICATION_VND_HZN_3D_CROSSWORD = ("application/vnd.hzn-3d-crossword", ("x3d",))
    APPLICATION_VND_IBM_MINIPAY = ("application/vnd.ibm.minipay", ("mpy",))
    APPLICATION_VND_IBM_MODCAP = ("application/vnd.ibm.modcap", ("afp", "list3820", "listafp"))
    APPLICATION_VND_IBM_RIGHTS_MANAGEMENT = ("application/vnd.ibm.rights-management", ("irm",))
    APPLICATION_VND_IBM_SECURE_CONTAINER = ("application/vnd.ibm.secure-container", ("sc",))
    APPLICATION_VND_ICCPROFILE = ("application/vnd.iccprofile", ("icc", "icm"))
    APPLICATION_VND_IGLOADER = ("application/vnd.igloader", ("igl",))
    APPLICATION_VND_IMMERVISION_IVP = ("application/vnd.immervision-ivp", ("ivp",))
    APPLICATION_VND_IMMERVISION_IVU = ("application/vnd.immervision-ivu", ("ivu",))
    APPLICATION_VND_INTERCON_FORMNET = ("application/vnd.intercon.formnet", ("xpw", "xpx"))
    APPLICATION_VND_INTU_QBO = ("application/vnd.intu.qbo", ("qbo",))
    APPLICATION_VND_INTU_QFX = ("application/vnd.intu.qfx", ("qfx",))
    APPLICATION_VND_IPUNPLUGGED_RCPROFILE = ("application/vnd.ipunplugged.rcprofile", ("rcprofile",))
    APPLICATION_VND_IREPOSITORY_PACKAGE_XML = ("application/vnd.irepository.package+xml", ("irp",))
    APPLICATION_VND_IS_XPR = ("application/vnd.is-xpr", ("xpr",))
    APPLICATION_VND_JAM = ("application/vnd.jam", ("jam",))
    APPLICATION_VND_JCP_JAVAME_MIDLET_RMS = ("application/vnd.jcp.javame.midlet-rms", ("rms",))
    APPLICATION_VND_JISP = ("application/vnd.jisp", ("jisp",))
    APPLICATION_VND_JOOST_JODA_ARCHIVE = ("application/vnd.joost.joda-archive", ("joda",))
    APPLICATION_VND_KAHOOTZ = ("application/vnd.kahootz", ("ktr", "ktz"))
    APPLICATION_VND_KDE_KARBON = ("application/vnd.kde.karbon", ("karbon",))
    APPLICATION_VND_KDE_KCHART = ("application/vnd.kde.kchart", ("chrt",))
    APPLICATION_VND_KDE_KFORMULA = ("application/vnd.kde.kformula", ("kfo",))
    APPLICATION_VND_KDE_KIVIO = ("application/vnd.kde.kivio", ("flw",))
    APPLICATION_VND_KDE_KONTOUR = ("application/vnd.kde.kontour", ("kon",))
    APPLICATION_VND_KDE_KPRESENTER = ("application/vnd.kde.kpresenter", ("kpr", "kpt"))
    APPLICATION_VND_KDE_KSPREAD = ("application/vnd.kde.kspread", ("ksp",))
    APPLICATION_VND_KDE_KWORD = ("application/vnd.kde.kword", ("kwd", "kwt"))
    APPLICATION_VND_KENAMEAAPP = ("application/vnd.kenameaapp", ("htke",))
    APPLICATION_VND_KIDSPIRATION = ("application/vnd.kidspiration", ("kia",))
    APPLICATION_VND_KINAR = ("application/vnd.kinar", ("kne", "knp"))
    APPLICATION_VND_KOAN = ("application/vnd.koan", ("skd", "skm", "skp", "skt"))
    APPLICATION_VND_KODAK_DESCRIPTOR = ("application/vnd.kodak-descriptor", ("sse",))
    APPLICATION_VND_LLAMAGRAPHICS_LIFE_BALANCE_DESKTOP = (
        "application/vnd.llamagraphics.life-balance.desktop",
        ("lbd",),
    )
    APPLICATION_VND_LLAMAGRAPHICS_LIFE_BALANCE_EXCHANGE_XML = (
        "application/vnd.llamagraphics.life-balance.exchange+xml",
        ("lbe",),
    )
    APPLICATION_VND_LOTUS_1_2_3 = ("application/vnd.lotus-1-2-3", ("123",))
    APPLICATION_VND_LOTUS_APPROACH = ("application/vnd.lotus-approach", ("apr",))
    APPLICATION_VND_LOTUS_FREELANCE = ("application/vnd.lotus-freelance", ("pre",))
    APPLICATION_VND_LOTUS_NOTES = ("application/vnd.lotus-notes", ("nsf",))
    APPLICATION_VND_LOTUS_ORGANIZER = ("application/vnd.lotus-organizer", ("org",))
    APPLICATION_VND_LOTUS_SCREENCAM = ("application/vnd.lotus-screencam", ("scm",))
    APPLICATION_VND_LOTUS_WORDPRO = ("application/vnd.lotus-wordpro", ("lwp",))
    APPLICATION_VND_MACPORTS_PORTPKG = ("application/vnd.macports.portpkg", ("portpkg",))
    APPLICATION_VND_MCD = ("application/vnd.mcd", ("mcd",))
    APPLICATION_VND_MEDCALCDATA = ("application/vnd.medcalcdata", ("mc1",))
    APPLICATION_VND_MEDIASTATION_CDKEY = ("application/vnd.mediastation.cdkey", ("cdkey",))
    APPLICATION_VND_MFER = ("application/vnd.mfer", ("mwf",))
    APPLICATION_VND_MFMP = ("application/vnd.mfmp", ("mfm",))
    APPLICATION_VND_MICROGRAFX_FLO = ("application/vnd.micrografx.flo", ("flo",))
    APPLICATION_VND_MICROGRAFX_IGX = ("application/vnd.micrografx.igx", ("igx",))
    APPLICATION_VND_MIF = ("application/vnd.mif", ("mif",))
    APPLICATION_VND_MOBIUS_DAF = ("application/vnd.mobius.daf", ("daf",))
    APPLICATION_VND_MOBIUS_DIS = ("application/vnd.mobius.dis", ("dis",))
    APPLICATION_VND_MOBIUS_MBK = ("application/vnd.mobius.mbk", ("mbk",))
    APPLICATION_VND_MOBIUS_MQY = ("application/vnd.mobius.mqy", ("mqy",))
    APPLICATION_VND_MOBIUS_MSL = ("application/vnd.mobius.msl", ("msl",))
    APPLICATION_VND_MOBIUS_PLC = ("application/vnd.mobius.plc", ("plc",))
    APPLICATION_VND_MOBIUS_TXF = ("application/vnd.mobius.txf", ("txf",))
    APPLICATION_VND_MOPHUN_APPLICATION = ("application/vnd.mophun.application", ("mpn",))
    APPLICATION_VND_MOPHUN_CERTIFICATE = ("application/vnd.mophun.certificate", ("mpc",))
    APPLICATION_VND_MOZILLA_XUL_XML = ("application/vnd.mozilla.xul+xml", ("xul",))
    APPLICATION_VND_MS_ARTGALRY = ("application/vnd.ms-artgalry", ("cil",))
    APPLICATION_VND_MS_CAB_COMPRESSED = ("application/vnd.ms-cab-compressed", ("cab",))
    APPLICATION_VND_MS_EXCEL = ("application/vnd.ms-excel", ("xla", "xlb", "xlc", "xlm", "xls", "xlt", "xlw"))
    APPLICATION_VND_MS_EXCEL_ADDIN_MACROENABLED_12 = ("application/vnd.ms-excel.addin.macroenabled.12", ("xlam",))
    APPLICATION_VND_MS_EXCEL_SHEET_BINARY_MACROENABLED_12 = (
        "application/vnd.ms-excel.sheet.binary.macroenabled.12",
        ("xlsb",),
    )
    APPLICATION_VND_MS_EXCEL_SHEET_MACROENABLED_12 = ("application/vnd.ms-excel.sheet.macroenabled.12", ("xlsm",))
    APPLICATION_VND_MS_EXCEL_TEMPLATE_MACROENABLED_12 = ("application/vnd.ms-excel.template.macroenabled.12", ("xltm",))
    APPLICATION_VND_MS_FONTOBJECT = ("application/vnd.ms-fontobject", ("eot",))
    APPLICATION_VND_MS_HTMLHELP = ("application/vnd.ms-htmlhelp", ("chm",))
    APPLICATION_VND_MS_IMS = ("application/vnd.ms-ims", ("ims",))
    APPLICATION_VND_MS_LRM = ("application/vnd.ms-lrm", ("lrm",))
    APPLICATION_VND_MS_PKI_SECCAT = ("application/vnd.ms-pki.seccat", ("cat",))
    APPLICATION_VND_MS_PKI_STL = ("application/vnd.ms-pki.stl", ("stl",))
    APPLICATION_VND_MS_POWERPOINT = ("application/vnd.ms-powerpoint", ("pot", "ppa", "pps", "ppt", "pwz"))
    APPLICATION_VND_MS_POWERPOINT_ADDIN_MACROENABLED_12 = (
        "application/vnd.ms-powerpoint.addin.macroenabled.12",
        ("ppam",),
    )
    APPLICATION_VND_MS_POWERPOINT_PRESENTATION_MACROENABLED_12 = (
        "application/vnd.ms-powerpoint.presentation.macroenabled.12",
        ("pptm",),
    )
    APPLICATION_VND_MS_POWERPOINT_SLIDE_MACROENABLED_12 = (
        "application/vnd.ms-powerpoint.slide.macroenabled.12",
        ("sldm",),
    )
    APPLICATION_VND_MS_POWERPOINT_SLIDESHOW_MACROENABLED_12 = (
        "application/vnd.ms-powerpoint.slideshow.macroenabled.12",
        ("ppsm",),
    )
    APPLICATION_VND_MS_POWERPOINT_TEMPLATE_MACROENABLED_12 = (
        "application/vnd.ms-powerpoint.template.macroenabled.12",
        ("potm",),
    )
    APPLICATION_VND_MS_PROJECT = ("application/vnd.ms-project", ("mpp", "mpt"))
    APPLICATION_VND_MS_WORD_DOCUMENT_MACROENABLED_12 = ("application/vnd.ms-word.document.macroenabled.12", ("docm",))
    APPLICATION_VND_MS_WORD_TEMPLATE_MACROENABLED_12 = ("application/vnd.ms-word.template.macroenabled.12", ("dotm",))
    APPLICATION_VND_MS_WORKS = ("application/vnd.ms-works", ("wcm", "wdb", "wks", "wps"))
    APPLICATION_VND_MS_WPL = ("application/vnd.ms-wpl", ("wpl",))
    APPLICATION_VND_MS_XPSDOCUMENT = ("application/vnd.ms-xpsdocument", ("xps",))
    APPLICATION_VND_MSEQ = ("application/vnd.mseq", ("mseq",))
    APPLICATION_VND_MUSICIAN = ("application/vnd.musician", ("mus",))
    APPLICATION_VND_MUVEE_STYLE = ("application/vnd.muvee.style", ("msty",))
    APPLICATION_VND_NEUROLANGUAGE_NLU = ("application/vnd.neurolanguage.nlu", ("nlu",))
    APPLICATION_VND_NOBLENET_DIRECTORY = ("application/vnd.noblenet-directory", ("nnd",))
    APPLICATION_VND_NOBLENET_SEALER = ("application/vnd.noblenet-sealer", ("nns",))
    APPLICATION_VND_NOBLENET_WEB = ("application/vnd.noblenet-web", ("nnw",))
    APPLICATION_VND_NOKIA_N_GAGE_DATA = ("application/vnd.nokia.n-gage.data", ("ngdat",))
    APPLICATION_VND_NOKIA_N_GAGE_SYMBIAN_INSTALL = ("application/vnd.nokia.n-gage.symbian.install", ("n-gage",))
    APPLICATION_VND_NOKIA_RADIO_PRESET = ("application/vnd.nokia.radio-preset", ("rpst",))
    APPLICATION_VND_NOKIA_RADIO_PRESETS = ("application/vnd.nokia.radio-presets", ("rpss",))
    APPLICATION_VND_NOVADIGM_EDM = ("application/vnd.novadigm.edm", ("edm",))
    APPLICATION_VND_NOVADIGM_EDX = ("application/vnd.novadigm.edx", ("edx",))
    APPLICATION_VND_NOVADIGM_EXT = ("application/vnd.novadigm.ext", ("ext",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_CHART = ("application/vnd.oasis.opendocument.chart", ("odc",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_CHART_TEMPLATE = ("application/vnd.oasis.opendocument.chart-template", ("otc",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_DATABASE = ("application/vnd.oasis.opendocument.database", ("odb",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_FORMULA = ("application/vnd.oasis.opendocument.formula", ("odf",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE = (
        "application/vnd.oasis.opendocument.formula-template",
        ("odft",),
    )
    APPLICATION_VND_OASIS_OPENDOCUMENT_GRAPHICS = ("application/vnd.oasis.opendocument.graphics", ("odg",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_GRAPHICS_TEMPLATE = (
        "application/vnd.oasis.opendocument.graphics-template",
        ("otg",),
    )
    APPLICATION_VND_OASIS_OPENDOCUMENT_IMAGE = ("application/vnd.oasis.opendocument.image", ("odi",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_IMAGE_TEMPLATE = ("application/vnd.oasis.opendocument.image-template", ("oti",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_PRESENTATION = ("application/vnd.oasis.opendocument.presentation", ("odp",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_PRESENTATION_TEMPLATE = (
        "application/vnd.oasis.opendocument.presentation-template",
        ("otp",),
    )
    APPLICATION_VND_OASIS_OPENDOCUMENT_SPREADSHEET = ("application/vnd.oasis.opendocument.spreadsheet", ("ods",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_SPREADSHEET_TEMPLATE = (
        "application/vnd.oasis.opendocument.spreadsheet-template",
        ("ots",),
    )
    APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT = ("application/vnd.oasis.opendocument.text", ("odt",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_MASTER = ("application/vnd.oasis.opendocument.text-master", ("otm",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_TEMPLATE = ("application/vnd.oasis.opendocument.text-template", ("ott",))
    APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_WEB = ("application/vnd.oasis.opendocument.text-web", ("oth",))
    APPLICATION_VND_OLPC_SUGAR = ("application/vnd.olpc-sugar", ("xo",))
    APPLICATION_VND_OMA_DD2_XML = ("application/vnd.oma.dd2+xml", ("dd2",))
    APPLICATION_VND_OPENOFFICEORG_EXTENSION = ("application/vnd.openofficeorg.extension", ("oxt",))
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = (
        "application/vnd.openxmlformats-officedocument.presentationml.presentation",
        ("pptx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDE = (
        "application/vnd.openxmlformats-officedocument.presentationml.slide",
        ("sldx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDESHOW = (
        "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
        ("ppsx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_TEMPLATE = (
        "application/vnd.openxmlformats-officedocument.presentationml.template",
        ("potx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_SHEET = (
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
        ("xlsx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_TEMPLATE = (
        "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
        ("xltx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = (
        "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
        ("docx",),
    )
    APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_TEMPLATE = (
        "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
        ("dotx",),
    )
    APPLICATION_VND_OSGI_DP = ("application/vnd.osgi.dp", ("dp",))
    APPLICATION_VND_PALM = ("application/vnd.palm", ("oprc", "pdb", "pqa"))
    APPLICATION_VND_PG_FORMAT = ("application/vnd.pg.format", ("str",))
    APPLICATION_VND_PG_OSASLI = ("application/vnd.pg.osasli", ("ei6",))
    APPLICATION_VND_PICSEL = ("application/vnd.picsel", ("efif",))
    APPLICATION_VND_POCKETLEARN = ("application/vnd.pocketlearn", ("plf",))
    APPLICATION_VND_POWERBUILDER6 = ("application/vnd.powerbuilder6", ("pbd",))
    APPLICATION_VND_PREVIEWSYSTEMS_BOX = ("application/vnd.previewsystems.box", ("box",))
    APPLICATION_VND_PROTEUS_MAGAZINE = ("application/vnd.proteus.magazine", ("mgz",))
    APPLICATION_VND_PUBLISHARE_DELTA_TREE = ("application/vnd.publishare-delta-tree", ("qps",))
    APPLICATION_VND_PVI_PTID1 = ("application/vnd.pvi.ptid1", ("ptid",))
    APPLICATION_VND_QUARK_QUARKXPRESS = (
        "application/vnd.quark.quarkxpress",
        ("qwd", "qwt", "qxb", "qxd", "qxl", "qxt"),
    )
    APPLICATION_VND_RAR = ("application/vnd.rar", ("rar",))
    APPLICATION_VND_RECORDARE_MUSICXML = ("application/vnd.recordare.musicxml", ("mxl",))
    APPLICATION_VND_RECORDARE_MUSICXML_XML = ("application/vnd.recordare.musicxml+xml", ("musicxml",))
    APPLICATION_VND_RIM_COD = ("application/vnd.rim.cod", ("cod",))
    APPLICATION_VND_RN_REALMEDIA = ("application/vnd.rn-realmedia", ("rm",))
    APPLICATION_VND_ROUTE66_LINK66_XML = ("application/vnd.route66.link66+xml", ("link66",))
    APPLICATION_VND_SEEMAIL = ("application/vnd.seemail", ("see",))
    APPLICATION_VND_SEMA = ("application/vnd.sema", ("sema",))
    APPLICATION_VND_SEMD = ("application/vnd.semd", ("semd",))
    APPLICATION_VND_SEMF = ("application/vnd.semf", ("semf",))
    APPLICATION_VND_SHANA_INFORMED_FORMDATA = ("application/vnd.shana.informed.formdata", ("ifm",))
    APPLICATION_VND_SHANA_INFORMED_FORMTEMPLATE = ("application/vnd.shana.informed.formtemplate", ("itp",))
    APPLICATION_VND_SHANA_INFORMED_INTERCHANGE = ("application/vnd.shana.informed.interchange", ("iif",))
    APPLICATION_VND_SHANA_INFORMED_PACKAGE = ("application/vnd.shana.informed.package", ("ipk",))
    APPLICATION_VND_SIMTECH_MINDMAPPER = ("application/vnd.simtech-mindmapper", ("twd", "twds"))
    APPLICATION_VND_SMAF = ("application/vnd.smaf", ("mmf",))
    APPLICATION_VND_SMART_TEACHER = ("application/vnd.smart.teacher", ("teacher",))
    APPLICATION_VND_SOLENT_SDKM_XML = ("application/vnd.solent.sdkm+xml", ("sdkd", "sdkm"))
    APPLICATION_VND_SPOTFIRE_DXP = ("application/vnd.spotfire.dxp", ("dxp",))
    APPLICATION_VND_SPOTFIRE_SFS = ("application/vnd.spotfire.sfs", ("sfs",))
    APPLICATION_VND_SQLITE3 = (
        "application/vnd.sqlite3",
        ("db", "db-shm", "db-wal", "sqlite", "sqlite-shm", "sqlite-wal", "sqlite3"),
    )
    APPLICATION_VND_STARDIVISION_CALC = ("application/vnd.stardivision.calc", ("sdc",))
    APPLICATION_VND_STARDIVISION_DRAW = ("application/vnd.stardivision.draw", ("sda",))
    APPLICATION_VND_STARDIVISION_IMPRESS = ("application/vnd.stardivision.impress", ("sdd",))
    APPLICATION_VND_STARDIVISION_MATH = ("application/vnd.stardivision.math", ("smf",))
    APPLICATION_VND_STARDIVISION_WRITER = ("application/vnd.stardivision.writer", ("sdw", "vor"))
    APPLICATION_VND_STARDIVISION_WRITER_GLOBAL = ("application/vnd.stardivision.writer-global", ("sgl",))
    APPLICATION_VND_SUN_XML_CALC = ("application/vnd.sun.xml.calc", ("sxc",))
    APPLICATION_VND_SUN_XML_CALC_TEMPLATE = ("application/vnd.sun.xml.calc.template", ("stc",))
    APPLICATION_VND_SUN_XML_DRAW = ("application/vnd.sun.xml.draw", ("sxd",))
    APPLICATION_VND_SUN_XML_DRAW_TEMPLATE = ("application/vnd.sun.xml.draw.template", ("std",))
    APPLICATION_VND_SUN_XML_IMPRESS = ("application/vnd.sun.xml.impress", ("sxi",))
    APPLICATION_VND_SUN_XML_IMPRESS_TEMPLATE = ("application/vnd.sun.xml.impress.template", ("sti",))
    APPLICATION_VND_SUN_XML_MATH = ("application/vnd.sun.xml.math", ("sxm",))
    APPLICATION_VND_SUN_XML_WRITER = ("application/vnd.sun.xml.writer", ("sxw",))
    APPLICATION_VND_SUN_XML_WRITER_GLOBAL = ("application/vnd.sun.xml.writer.global", ("sxg",))
    APPLICATION_VND_SUN_XML_WRITER_TEMPLATE = ("application/vnd.sun.xml.writer.template", ("stw",))
    APPLICATION_VND_SUS_CALENDAR = ("application/vnd.sus-calendar", ("sus", "susp"))
    APPLICATION_VND_SVD = ("application/vnd.svd", ("svd",))
    APPLICATION_VND_SYMBIAN_INSTALL = ("application/vnd.symbian.install", ("sis", "sisx"))
    APPLICATION_VND_SYNCML_XML = ("application/vnd.syncml+xml", ("xsm",))
    APPLICATION_VND_SYNCML_DM_WBXML = ("application/vnd.syncml.dm+wbxml", ("bdm",))
    APPLICATION_VND_SYNCML_DM_XML = ("application/vnd.syncml.dm+xml", ("xdm",))
    APPLICATION_VND_TAO_INTENT_MODULE_ARCHIVE = ("application/vnd.tao.intent-module-archive", ("tao",))
    APPLICATION_VND_TMOBILE_LIVETV = ("application/vnd.tmobile-livetv", ("tmo",))
    APPLICATION_VND_TRID_TPT = ("application/vnd.trid.tpt", ("tpt",))
    APPLICATION_VND_TRISCAPE_MXS = ("application/vnd.triscape.mxs", ("mxs",))
    APPLICATION_VND_TRUEAPP = ("application/vnd.trueapp", ("tra",))
    APPLICATION_VND_UFDL = ("application/vnd.ufdl", ("ufd", "ufdl"))
    APPLICATION_VND_UIQ_THEME = ("application/vnd.uiq.theme", ("utz",))
    APPLICATION_VND_UMAJIN = ("application/vnd.umajin", ("umj",))
    APPLICATION_VND_UNITY = ("application/vnd.unity", ("unityweb",))
    APPLICATION_VND_UOML_XML = ("application/vnd.uoml+xml", ("uoml",))
    APPLICATION_VND_VCX = ("application/vnd.vcx", ("vcx",))
    APPLICATION_VND_VISIO = (
        "application/vnd.visio",
        ("vsd", "vsdx", "vss", "vssm", "vssx", "vst", "vstm", "vstx", "vsw"),
    )
    APPLICATION_VND_VISIONARY = ("application/vnd.visionary", ("vis",))
    APPLICATION_VND_VSF = ("application/vnd.vsf", ("vsf",))
    APPLICATION_VND_WAP_SIC = ("application/vnd.wap.sic", ("sic",))
    APPLICATION_VND_WAP_SLC = ("application/vnd.wap.slc", ("slc",))
    APPLICATION_VND_WAP_WBXML = ("application/vnd.wap.wbxml", ("wbxml",))
    APPLICATION_VND_WAP_WMLC = ("application/vnd.wap.wmlc", ("wmlc",))
    APPLICATION_VND_WAP_WMLSCRIPTC = ("application/vnd.wap.wmlscriptc", ("wmlsc",))
    APPLICATION_VND_WEBTURBO = ("application/vnd.webturbo", ("wtb",))
    APPLICATION_VND_WORDPERFECT = ("application/vnd.wordperfect", ("wpd",))
    APPLICATION_VND_WQD = ("application/vnd.wqd", ("wqd",))
    APPLICATION_VND_WT_STF = ("application/vnd.wt.stf", ("stf",))
    APPLICATION_VND_XARA = ("application/vnd.xara", ("xar",))
    APPLICATION_VND_XFDL = ("application/vnd.xfdl", ("xfdl",))
    APPLICATION_VND_YAMAHA_HV_DIC = ("application/vnd.yamaha.hv-dic", ("hvd",))
    APPLICATION_VND_YAMAHA_HV_SCRIPT = ("application/vnd.yamaha.hv-script", ("hvs",))
    APPLICATION_VND_YAMAHA_HV_VOICE = ("application/vnd.yamaha.hv-voice", ("hvp",))
    APPLICATION_VND_YAMAHA_OPENSCOREFORMAT = ("application/vnd.yamaha.openscoreformat", ("osf",))
    APPLICATION_VND_YAMAHA_OPENSCOREFORMAT_OSFPVG_XML = (
        "application/vnd.yamaha.openscoreformat.osfpvg+xml",
        ("osfpvg",),
    )
    APPLICATION_VND_YAMAHA_SMAF_AUDIO = ("application/vnd.yamaha.smaf-audio", ("saf",))
    APPLICATION_VND_YAMAHA_SMAF_PHRASE = ("application/vnd.yamaha.smaf-phrase", ("spf",))
    APPLICATION_VND_YELLOWRIVER_CUSTOM_MENU = ("application/vnd.yellowriver-custom-menu", ("cmp",))
    APPLICATION_VND_ZUL = ("application/vnd.zul", ("zir", "zirz"))
    APPLICATION_VND_ZZAZZ_DECK_XML = ("application/vnd.zzazz.deck+xml", ("zaz",))
    APPLICATION_VOICEXML_XML = ("application/voicexml+xml", ("vxml",))
    APPLICATION_WASM = ("application/wasm", ("wasm",))
    APPLICATION_WINHLP = ("application/winhlp", ("hlp",))
    APPLICATION_WSDL_XML = ("application/wsdl+xml", ("wsdl",))
    APPLICATION_WSPOLICY_XML = ("application/wspolicy+xml", ("wspolicy",))
    APPLICATION_X_7Z_COMPRESSED = ("application/x-7z-compressed", ("7z",))
    APPLICATION_X_ABIWORD = ("application/x-abiword", ("abw", "abw.gz", "zabw"))
    APPLICATION_X_ACE_COMPRESSED = ("application/x-ace-compressed", ("ace",))
    APPLICATION_X_AUTHORWARE_BIN = ("application/x-authorware-bin", ("aab", "u32", "vox", "x32"))
    APPLICATION_X_AUTHORWARE_MAP = ("application/x-authorware-map", ("aam",))
    APPLICATION_X_AUTHORWARE_SEG = ("application/x-authorware-seg", ("aas",))
    APPLICATION_X_BCPIO = ("application/x-bcpio", ("bcpio",))
    APPLICATION_X_BITTORRENT = ("application/x-bittorrent", ("torrent",))
    APPLICATION_X_BZIP = ("application/x-bzip", ("bz",))
    APPLICATION_X_BZIP2 = ("application/x-bzip2", ("boz", "bz2"))
    APPLICATION_X_CDLINK = ("application/x-cdlink", ("vcd",))
    APPLICATION_X_CHAT = ("application/x-chat", ("chat",))
    APPLICATION_X_CHESS_PGN = ("application/x-chess-pgn", ("pgn",))
    APPLICATION_X_CPIO = ("application/x-cpio", ("cpio",))
    APPLICATION_X_CSH = ("application/x-csh", ("csh",))
    APPLICATION_X_DEBIAN_PACKAGE = ("application/x-debian-package", ("deb", "udeb"))
    APPLICATION_X_DIRECTOR = ("application/x-director", ("cct", "cst", "cxt", "dcr", "dir", "dxr", "fgd", "swa", "w3d"))
    APPLICATION_X_DOOM = ("application/x-doom", ("wad",))
    APPLICATION_X_DTBNCX_XML = ("application/x-dtbncx+xml", ("ncx",))
    APPLICATION_X_DTBOOK_XML = ("application/x-dtbook+xml", ("dtb",))
    APPLICATION_X_DTBRESOURCE_XML = ("application/x-dtbresource+xml", ("res",))
    APPLICATION_X_DVI = ("application/x-dvi", ("dvi",))
    APPLICATION_X_FONT_BDF = ("application/x-font-bdf", ("bdf",))
    APPLICATION_X_FONT_GHOSTSCRIPT = ("application/x-font-ghostscript", ("gsf",))
    APPLICATION_X_FONT_LINUX_PSF = ("application/x-font-linux-psf", ("psf",))
    APPLICATION_X_FONT_OTF = ("application/x-font-otf", ("otf",))
    APPLICATION_X_FONT_PCF = ("application/x-font-pcf", ("pcf",))
    APPLICATION_X_FONT_SNF = ("application/x-font-snf", ("snf",))
    APPLICATION_X_FONT_TTF = ("application/x-font-ttf", ("ttc", "ttf"))
    APPLICATION_X_FONT_TYPE1 = ("application/x-font-type1", ("afm", "pfa", "pfb", "pfm"))
    APPLICATION_X_FUTURESPLASH = ("application/x-futuresplash", ("spl",))
    APPLICATION_X_GNUMERIC = ("application/x-gnumeric", ("gnumeric",))
    APPLICATION_X_GTAR = ("application/x-gtar", ("gtar",))
    APPLICATION_X_GZIP = ("application/x-gzip", ("gz", "tgz"))
    APPLICATION_X_HDF = ("application/x-hdf", ("hdf",))
    APPLICATION_X_ISO9660_IMAGE = ("application/x-iso9660-image", ("cdr", "iso", "isoimg"))
    APPLICATION_X_JAVA_JNLP_FILE = ("application/x-java-jnlp-file", ("jnlp",))
    APPLICATION_X_KILLUSTRATOR = ("application/x-killustrator", ("kil",))
    APPLICATION_X_KRITA = ("application/x-krita", ("kra", "krz"))
    APPLICATION_X_LATEX = ("application/x-latex", ("latex",))
    APPLICATION_X_MOBIPOCKET_EBOOK = ("application/x-mobipocket-ebook", ("mobi", "prc"))
    APPLICATION_X_MS_APPLICATION = ("application/x-ms-application", ("application",))
    APPLICATION_X_MS_WMD = ("application/x-ms-wmd", ("wmd",))
    APPLICATION_X_MS_WMZ = ("application/x-ms-wmz", ("wmz",))
    APPLICATION_X_MS_XBAP = ("application/x-ms-xbap", ("xbap",))
    APPLICATION_X_MSACCESS = ("application/x-msaccess", ("mdb",))
    APPLICATION_X_MSBINDER = ("application/x-msbinder", ("obd",))
    APPLICATION_X_MSCARDFILE = ("application/x-mscardfile", ("crd",))
    APPLICATION_X_MSCLIP = ("application/x-msclip", ("clp",))
    APPLICATION_X_MSDOWNLOAD = ("application/x-msdownload", ("bat", "com", "dll", "exe", "msi"))
    APPLICATION_X_MSMEDIAVIEW = ("application/x-msmediaview", ("m13", "m14", "mvb"))
    APPLICATION_X_MSMETAFILE = ("application/x-msmetafile", ("wmf",))
    APPLICATION_X_MSMONEY = ("application/x-msmoney", ("mny",))
    APPLICATION_X_MSPUBLISHER = ("application/x-mspublisher", ("pub",))
    APPLICATION_X_MSSCHEDULE = ("application/x-msschedule", ("scd",))
    APPLICATION_X_MSTERMINAL = ("application/x-msterminal", ("trm",))
    APPLICATION_X_MSWRITE = ("application/x-mswrite", ("wri",))
    APPLICATION_X_NETCDF = ("application/x-netcdf", ("cdf", "nc"))
    APPLICATION_X_PERL = ("application/x-perl", ("pl", "pm"))
    APPLICATION_X_PKCS12 = ("application/x-pkcs12", ("p12", "pfx"))
    APPLICATION_X_PKCS7_CERTIFICATES = ("application/x-pkcs7-certificates", ("p7b", "spc"))
    APPLICATION_X_PKCS7_CERTREQRESP = ("application/x-pkcs7-certreqresp", ("p7r",))
    APPLICATION_X_RAR_COMPRESSED = ("application/x-rar-compressed", ("rar",))
    APPLICATION_X_REDHAT_PACKAGE_MANAGER = ("application/x-redhat-package-manager", ("rpa",))
    APPLICATION_X_RPM = ("application/x-rpm", ("rpm",))
    APPLICATION_X_SH = ("application/x-sh", ("sh",))
    APPLICATION_X_SHAR = ("application/x-shar", ("shar",))
    APPLICATION_X_SHELLSCRIPT = ("application/x-shellscript", ("sh",))
    APPLICATION_X_SHOCKWAVE_FLASH = ("application/x-shockwave-flash", ("swf",))
    APPLICATION_X_SILVERLIGHT_APP = ("application/x-silverlight-app", ("xap",))
    APPLICATION_X_STUFFIT = ("application/x-stuffit", ("sit",))
    APPLICATION_X_STUFFITX = ("application/x-stuffitx", ("sitx",))
    APPLICATION_X_SV4CPIO = ("application/x-sv4cpio", ("sv4cpio",))
    APPLICATION_X_SV4CRC = ("application/x-sv4crc", ("sv4crc",))
    APPLICATION_X_TAR = ("application/x-tar", ("tar",))
    APPLICATION_X_TCL = ("application/x-tcl", ("tcl",))
    APPLICATION_X_TEX = ("application/x-tex", ("tex",))
    APPLICATION_X_TEX_TFM = ("application/x-tex-tfm", ("tfm",))
    APPLICATION_X_TEXINFO = ("application/x-texinfo", ("texi", "texinfo"))
    APPLICATION_X_TRASH = ("application/x-trash", ())
    APPLICATION_X_USTAR = ("application/x-ustar", ("ustar",))
    APPLICATION_X_WAIS_SOURCE = ("application/x-wais-source", ("src",))
    APPLICATION_X_X509_CA_CERT = ("application/x-x509-ca-cert", ("crt", "der"))
    APPLICATION_X_XFIG = ("application/x-xfig", ("fig",))
    APPLICATION_X_XPINSTALL = ("application/x-xpinstall", ("xpi",))
    APPLICATION_X_ZIP_COMPRESSED = ("application/x-zip-compressed", ("zip",))
    APPLICATION_XENC_XML = ("application/xenc+xml", ("xenc",))
    APPLICATION_XHTML_XML = ("application/xhtml+xml", ("xht", "xhtml"))
    APPLICATION_XML = ("application/xml", ("xml", "xpdl", "xsl"))
    APPLICATION_XML_DTD = ("application/xml-dtd", ("dtd",))
    APPLICATION_XOP_XML = ("application/xop+xml", ("xop",))
    APPLICATION_XSLT_XML = ("application/xslt+xml", ("xslt",))
    APPLICATION_XSPF_XML = ("application/xspf+xml", ("xspf",))
    APPLICATION_XV_XML = ("application/xv+xml", ("mxml", "xhvml", "xvm", "xvml"))
    APPLICATION_YAML = ("application/yaml", ("yaml", "yml"))
    APPLICATION_ZIP = ("application/zip", ("zip",))
    APPLICATION_ZIP_COMPRESSED = ("application/zip-compressed", ("zip",))
    AUDIO_3GPP2 = ("audio/3gpp2", ("3g2",))
    AUDIO_AAC = ("audio/aac", ("aac", "m4a"))
    AUDIO_AACP = ("audio/aacp", ("aacp",))
    AUDIO_ADPCM = ("audio/adpcm", ("adp",))
    AUDIO_AIFF = ("audio/aiff", ("aff", "aif", "aiff"))
    AUDIO_BASIC = ("audio/basic", ("au", "snd"))
    AUDIO_FLAC = ("audio/flac", ("flac",))
    AUDIO_MIDI = ("audio/midi", ("kar", "mid", "midi", "rmi"))
    AUDIO_MP4 = (
        "audio/mp4",
        ("3g2", "3ga", "3gp", "3gp2", "3gpa", "3gpp", "3gpp2", "m4a", "m4b", "m4p", "m4r", "m4v", "mp4", "mp4v"),
    )
    AUDIO_MP4A_LATM = ("audio/mp4a-latm", ())
    AUDIO_MPEG = ("audio/mpeg", ("m2a", "m3a", "mp2", "mp2a", "mp3", "mpga"))
    AUDIO_OGG = ("audio/ogg", ("oga", "ogg", "spx"))
    AUDIO_OPUS = ("audio/opus", ("opus",))
    AUDIO_VND_DIGITAL_WINDS = ("audio/vnd.digital-winds", ("eol",))
    AUDIO_VND_DTS = ("audio/vnd.dts", ("dts",))
    AUDIO_VND_DTS_HD = ("audio/vnd.dts.hd", ("dtshd",))
    AUDIO_VND_LUCENT_VOICE = ("audio/vnd.lucent.voice", ("lvp",))
    AUDIO_VND_MS_PLAYREADY_MEDIA_PYA = ("audio/vnd.ms-playready.media.pya", ("pya",))
    AUDIO_VND_NUERA_ECELP4800 = ("audio/vnd.nuera.ecelp4800", ("ecelp4800",))
    AUDIO_VND_NUERA_ECELP7470 = ("audio/vnd.nuera.ecelp7470", ("ecelp7470",))
    AUDIO_VND_NUERA_ECELP9600 = ("audio/vnd.nuera.ecelp9600", ("ecelp9600",))
    AUDIO_VND_WAV = ("audio/vnd.wav", ("wav",))
    AUDIO_WEBM = ("audio/webm", ("weba",))
    AUDIO_X_MATROSKA = ("audio/x-matroska", ("mka",))
    AUDIO_X_MPEGURL = ("audio/x-mpegurl", ("m3u",))
    AUDIO_X_MS_WAX = ("audio/x-ms-wax", ("wax",))
    AUDIO_X_MS_WMA = ("audio/x-ms-wma", ("wma",))
    AUDIO_X_PN_REALAUDIO = ("audio/x-pn-realaudio", ("ra", "ram"))
    AUDIO_X_PN_REALAUDIO_PLUGIN = ("audio/x-pn-realaudio-plugin", ("rmp",))
    CHEMICAL_X_CDX = ("chemical/x-cdx", ("cdx",))
    CHEMICAL_X_CIF = ("chemical/x-cif", ("cif",))
    CHEMICAL_X_CMDF = ("chemical/x-cmdf", ("cmdf",))
    CHEMICAL_X_CML = ("chemical/x-cml", ("cml",))
    CHEMICAL_X_CSML = ("chemical/x-csml", ("csml",))
    CHEMICAL_X_XYZ = ("chemical/x-xyz", ("xyz",))
    FONT_OTF = ("font/otf", ("otf",))
    FONT_WOFF = ("font/woff", ("woff",))
    FONT_WOFF2 = ("font/woff2", ("woff2",))
    GCODE = ("gcode", ("gcode",))
    IMAGE_AVIF = ("image/avif", ("avif",))
    IMAGE_AVIF_SEQUENCE = ("image/avif-sequence", ("avifs",))
    IMAGE_BMP = ("image/bmp", ("bmp",))
    IMAGE_CGM = ("image/cgm", ("cgm",))
    IMAGE_G3FAX = ("image/g3fax", ("g3",))
    IMAGE_GIF = ("image/gif", ("gif",))
    IMAGE_HEIC = ("image/heic", ("heic", "heif"))
    IMAGE_IEF = ("image/ief", ("ief",))
    IMAGE_JPEG = ("image/jpeg", ("jfif", "jfif-tbnl", "jif", "jpe", "jpeg", "jpg", "pjpg"))
    IMAGE_PJPEG = ("image/pjpeg", ("jfi", "jfif", "jfif-tbnl", "jif", "jpe", "jpeg", "jpg", "pjpg"))
    IMAGE_PNG = ("image/png", ("png",))
    IMAGE_PRS_BTIF = ("image/prs.btif", ("btif",))
    IMAGE_SVG_XML = ("image/svg+xml", ("svg", "svgz"))
    IMAGE_TIFF = ("image/tiff", ("tif", "tiff"))
    IMAGE_VND_ADOBE_PHOTOSHOP = ("image/vnd.adobe.photoshop", ("psd",))
    IMAGE_VND_DJVU = ("image/vnd.djvu", ("djv", "djvu"))
    IMAGE_VND_DWG = ("image/vnd.dwg", ("dwg",))
    IMAGE_VND_DXF = ("image/vnd.dxf", ("dxf",))
    IMAGE_VND_FASTBIDSHEET = ("image/vnd.fastbidsheet", ("fbs",))
    IMAGE_VND_FPX = ("image/vnd.fpx", ("fpx",))
    IMAGE_VND_FST = ("image/vnd.fst", ("fst",))
    IMAGE_VND_FUJIXEROX_EDMICS_MMR = ("image/vnd.fujixerox.edmics-mmr", ("mmr",))
    IMAGE_VND_FUJIXEROX_EDMICS_RLC = ("image/vnd.fujixerox.edmics-rlc", ("rlc",))
    IMAGE_VND_MS_MODI = ("image/vnd.ms-modi", ("mdi",))
    IMAGE_VND_NET_FPX = ("image/vnd.net-fpx", ("npx",))
    IMAGE_VND_WAP_WBMP = ("image/vnd.wap.wbmp", ("wbmp",))
    IMAGE_VND_XIFF = ("image/vnd.xiff", ("xif",))
    IMAGE_WEBP = ("image/webp", ("webp",))
    IMAGE_X_ADOBE_DNG = ("image/x-adobe-dng", ("dng",))
    IMAGE_X_CANON_CR2 = ("image/x-canon-cr2", ("cr2",))
    IMAGE_X_CANON_CRW = ("image/x-canon-crw", ("crw",))
    IMAGE_X_CMU_RASTER = ("image/x-cmu-raster", ("ras",))
    IMAGE_X_CMX = ("image/x-cmx", ("cmx",))
    IMAGE_X_EPSON_ERF = ("image/x-epson-erf", ("erf",))
    IMAGE_X_FREEHAND = ("image/x-freehand", ("fh", "fh4", "fh5", "fh7", "fhc"))
    IMAGE_X_FUJI_RAF = ("image/x-fuji-raf", ("raf",))
    IMAGE_X_ICNS = ("image/x-icns", ("icns",))
    IMAGE_X_ICON = ("image/x-icon", ("ico",))
    IMAGE_X_KODAK_DCR = ("image/x-kodak-dcr", ("dcr",))
    IMAGE_X_KODAK_K25 = ("image/x-kodak-k25", ("k25",))
    IMAGE_X_KODAK_KDC = ("image/x-kodak-kdc", ("kdc",))
    IMAGE_X_MINOLTA_MRW = ("image/x-minolta-mrw", ("mrw",))
    IMAGE_X_NIKON_NEF = ("image/x-nikon-nef", ("nef",))
    IMAGE_X_OLYMPUS_ORF = ("image/x-olympus-orf", ("orf",))
    IMAGE_X_PANASONIC_RAW = ("image/x-panasonic-raw", ("raw", "rw2", "rwl"))
    IMAGE_X_PCX = ("image/x-pcx", ("pcx",))
    IMAGE_X_PENTAX_PEF = ("image/x-pentax-pef", ("pef", "ptx"))
    IMAGE_X_PICT = ("image/x-pict", ("pct", "pic"))
    IMAGE_X_PORTABLE_ANYMAP = ("image/x-portable-anymap", ("pnm",))
    IMAGE_X_PORTABLE_BITMAP = ("image/x-portable-bitmap", ("pbm",))
    IMAGE_X_PORTABLE_GRAYMAP = ("image/x-portable-graymap", ("pgm",))
    IMAGE_X_PORTABLE_PIXMAP = ("image/x-portable-pixmap", ("ppm",))
    IMAGE_X_RGB = ("image/x-rgb", ("rgb",))
    IMAGE_X_SIGMA_X3F = ("image/x-sigma-x3f", ("x3f",))
    IMAGE_X_SONY_ARW = ("image/x-sony-arw", ("arw",))
    IMAGE_X_SONY_SR2 = ("image/x-sony-sr2", ("sr2",))
    IMAGE_X_SONY_SRF = ("image/x-sony-srf", ("srf",))
    IMAGE_X_XBITMAP = ("image/x-xbitmap", ("xbm",))
    IMAGE_X_XPIXMAP = ("image/x-xpixmap", ("xpm",))
    IMAGE_X_XWINDOWDUMP = ("image/x-xwindowdump", ("xwd",))
    MESSAGE_RFC822 = ("message/rfc822", ("eml", "mht", "mhtml", "mime", "nws"))
    MODEL_IGES = ("model/iges", ("iges", "igs"))
    MODEL_MESH = ("model/mesh", ("mesh", "msh", "silo"))
    MODEL_VND_DWF = ("model/vnd.dwf", ("dwf",))
    MODEL_VND_GDL = ("model/vnd.gdl", ("gdl",))
    MODEL_VND_GTW = ("model/vnd.gtw", ("gtw",))
    MODEL_VND_MTS = ("model/vnd.mts", ("mts",))
    MODEL_VND_VTU = ("model/vnd.vtu", ("vtu",))
    MODEL_VRML = ("model/vrml", ("vrml", "wrl"))
    TEST_MIMETYPE = ("test/mimetype", ("test",))
    TEXT_CALENDAR = ("text/calendar", ("ics", "ifb"))
    TEXT_CSS = ("text/css", ("css",))
    TEXT_CSV = ("text/csv", ("csv",))
    TEXT_HTML = ("text/html", ("htm", "html"))
    TEXT_JAVASCRIPT = ("text/javascript", ("js",))
    TEXT_MARKDOWN = ("text/markdown", ("markdn", "markdown", "md", "mdown"))
    TEXT_MATHML = ("text/mathml", ("mathml", "mml"))
    TEXT_PLAIN = ("text/plain", ("conf", "def", "diff", "in", "ksh", "list", "log", "pl", "text", "txt"))
    TEXT_PRS_LINES_TAG = ("text/prs.lines.tag", ("dsc",))
    TEXT_RICHTEXT = ("text/richtext", ("rtx",))
    TEXT_SGML = ("text/sgml", ("sgm", "sgml"))
    TEXT_TAB_SEPARATED_VALUES = ("text/tab-separated-values", ("tsv",))
    TEXT_TROFF = ("text/troff", ("man", "me", "ms", "roff", "t", "tr"))
    TEXT_URI_LIST = ("text/uri-list", ("uri", "uris", "urls"))
    TEXT_VND_CURL = ("text/vnd.curl", ("curl",))
    TEXT_VND_CURL_DCURL = ("text/vnd.curl.dcurl", ("dcurl",))
    TEXT_VND_CURL_MCURL = ("text/vnd.curl.mcurl", ("mcurl",))
    TEXT_VND_CURL_SCURL = ("text/vnd.curl.scurl", ("scurl",))
    TEXT_VND_FLY = ("text/vnd.fly", ("fly",))
    TEXT_VND_FMI_FLEXSTOR = ("text/vnd.fmi.flexstor", ("flx",))
    TEXT_VND_GRAPHVIZ = ("text/vnd.graphviz", ("gv",))
    TEXT_VND_IN3D_3DML = ("text/vnd.in3d.3dml", ("3dml",))
    TEXT_VND_IN3D_SPOT = ("text/vnd.in3d.spot", ("spot",))
    TEXT_VND_SUN_J2ME_APP_DESCRIPTOR = ("text/vnd.sun.j2me.app-descriptor", ("jad",))
    TEXT_VND_WAP_SI = ("text/vnd.wap.si", ("si",))
    TEXT_VND_WAP_SL = ("text/vnd.wap.sl", ("sl",))
    TEXT_VND_WAP_WML = ("text/vnd.wap.wml", ("wml",))
    TEXT_VND_WAP_WMLSCRIPT = ("text/vnd.wap.wmlscript", ("wmls",))
    TEXT_X_ASM = ("text/x-asm", ("asm", "s"))
    TEXT_X_C = ("text/x-c", ("c", "cc", "cpp", "cxx", "dic", "h", "hh"))
    TEXT_X_FORTRAN = ("text/x-fortran", ("f", "f77", "f90", "for"))
    TEXT_X_JAVA_SOURCE = ("text/x-java-source", ("java",))
    TEXT_X_PASCAL = ("text/x-pascal", ("inc", "p", "pas", "pp"))
    TEXT_X_PYTHON = ("text/x-python", ("py", "pyc", "pyd", "pyo", "whl"))
    TEXT_X_SETEXT = ("text/x-setext", ("etx",))
    TEXT_X_UUENCODE = ("text/x-uuencode", ("uu",))
    TEXT_X_VCALENDAR = ("text/x-vcalendar", ("vcs",))
    TEXT_X_VCARD = ("text/x-vcard", ("vcf",))
    VIDEO_3GPP = ("video/3gpp", ("3gp",))
    VIDEO_3GPP2 = ("video/3gpp2", ("3g2",))
    VIDEO_H261 = ("video/h261", ("h261",))
    VIDEO_H263 = ("video/h263", ("h263",))
    VIDEO_H264 = ("video/h264", ("h264",))
    VIDEO_JPEG = ("video/jpeg", ("jpgv",))
    VIDEO_JPM = ("video/jpm", ("jpgm", "jpm"))
    VIDEO_MJ2 = ("video/mj2", ("mj2", "mjp2"))
    VIDEO_MP2T = ("video/mp2t", ("ts",))
    VIDEO_MP4 = ("video/mp4", ("mp4", "mp4v", "mpg4"))
    VIDEO_MPEG = ("video/mpeg", ("m1v", "m2v", "mpa", "mpe", "mpeg", "mpg"))
    VIDEO_OGG = ("video/ogg", ("ogv",))
    VIDEO_QUICKTIME = ("video/quicktime", ("mov", "qt"))
    VIDEO_VND_FVT = ("video/vnd.fvt", ("fvt",))
    VIDEO_VND_MPEGURL = ("video/vnd.mpegurl", ("m4u", "mxu"))
    VIDEO_VND_MS_PLAYREADY_MEDIA_PYV = ("video/vnd.ms-playready.media.pyv", ("pyv",))
    VIDEO_VND_VIVO = ("video/vnd.vivo", ("viv",))
    VIDEO_WEBM = ("video/webm", ("webm",))
    VIDEO_X_F4V = ("video/x-f4v", ("f4v",))
    VIDEO_X_FLI = ("video/x-fli", ("fli",))
    VIDEO_X_FLV = ("video/x-flv", ("flv",))
    VIDEO_X_M4V = ("video/x-m4v", ("m4v",))
    VIDEO_X_MATROSKA = ("video/x-matroska", ("mkv",))
    VIDEO_X_MS_ASF = ("video/x-ms-asf", ("asf", "asx"))
    VIDEO_X_MS_WM = ("video/x-ms-wm", ("wm",))
    VIDEO_X_MS_WMV = ("video/x-ms-wmv", ("wmv",))
    VIDEO_X_MS_WMX = ("video/x-ms-wmx", ("wmx",))
    VIDEO_X_MS_WVX = ("video/x-ms-wvx", ("wvx",))
    VIDEO_X_MSVIDEO = ("video/x-msvideo", ("avi",))
    VIDEO_X_SGI_MOVIE = ("video/x-sgi-movie", ("movie",))
    X_CONFERENCE_X_COOLTALK = ("x-conference/x-cooltalk", ("ice",))

    # Convenient aliases for commonly used MIME types with verbose names
    APPLICATION_DOCX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT
    APPLICATION_DOTX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_TEMPLATE
    APPLICATION_POTX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_TEMPLATE
    APPLICATION_PPSX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDESHOW
    APPLICATION_PPTX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION
    APPLICATION_SLDX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDE
    APPLICATION_XLSX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_SHEET
    APPLICATION_XLTX = APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_TEMPLATE

Convenient Aliases

The MimeType enum includes convenient aliases for commonly used MIME types with verbose names. These aliases point to the exact same enum instances as their full counterparts.

Microsoft Office Format Aliases

  • APPLICATION_DOCXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT
  • APPLICATION_DOTXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_TEMPLATE
  • APPLICATION_XLSXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_SHEET
  • APPLICATION_XLTXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_TEMPLATE
  • APPLICATION_PPTXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION
  • APPLICATION_POTXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_TEMPLATE
  • APPLICATION_PPSXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDESHOW
  • APPLICATION_SLDXAPPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDE

All aliases maintain the same string representation, extensions, and functionality as their verbose counterparts.