Skip to content

Add more text MIME types with defined file extensions #146343

Open

Description

@clin1234

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    triagedThe issue has been accepted as valid by a triager.
    on Mar 23, 2026
  2. bitdancer commented on Mar 24, 2026

    @bitdancer
    Member

    Please provide documentation on the validity of these additions.

  3. picnixz commented on Mar 25, 2026

    @picnixz
    Member

    The list adds:

      - ``.appcache`` and ``.manifest`` for ``text/cache-manifest``
      - ``.ics`` and ``.ifb``    for ``text/calendar``
      - ``.cql``    for ``text/cql``
      - ``.csvs``   for ``text/csv-schema``
      - ``.gff3``   for ``text/gff3``
      - ``.cnd``    for ``text/jcr-cnd``
      - ``.miz``    for ``text/mizar``
      - ``.org``    for ``text/org``
      - ``.provn``  for ``text/provenance-notation``
      - ``.shaclc`` and ``.shc``    for ``text/shaclc``
      - ``.shex``   for ``text/shex``
      - ``.spdx``   for ``text/spdx``
      - ``.ttl``    for ``text/turtle``
      - ``.uri``  and ``.uris``   for ``text/uri-list``
      - ``.vcard`` and ``.vcf``    for ``text/vcard``
      - ``.ascii``  for ``text/vnd.ascii-art``
      - ``.curl``   for ``text/vnd.curl``
      - ``.gml``    for ``text/vnd.gml``
      - ``.gv``     for ``text/vnd.graphviz``
      - ``.wgsl``   for ``text/wgsl``
      - ``.ent``    for ``text/xml-external-parsed-entity``
    

    I am willing to add .ics and .vcard but the others aren't that used I think. .manifest and .csvs may be relevant though, IDK.

  4. clin1234 commented on Mar 25, 2026

    @clin1234
    ContributorAuthor

    Graphviz, SPDX (a Linux Foundation standard), and Org Emacs files have well-known specs and defined file extenions. The others have formally-defined MIME types, so they should be added for completeness

  5. picnixz commented on Mar 25, 2026

    @picnixz
    Member

    Oh right, SPDX is useful. I'm not willing to add others for the sake of completeness though. I would rather have an autogenerate list instead if we want "completeness". In addition, your changes changed the priority order of mime types, so we should be extra careful here.

  6. removed
    triagedThe issue has been accepted as valid by a triager.
    on Mar 25, 2026
  7. clin1234 commented on Mar 25, 2026

    @clin1234
    ContributorAuthor

    Do you mean the JS file types? You can mark the diffs containing them in my PR for reversion if you like.

  8. picnixz commented on Mar 25, 2026

    @picnixz
    Member

    First, we need to decide whether we want to all those types. I asked to create an issue for gathering similar MIME types so that we can discuss first which ones to add as well.

    I think some are useful, but not all of them. The list is already growing a lot and I think it would make more sense to have that list in an auto-generated file instead but that's also another question.

    For now, I want you to revert the changes you made in the PR that are not additions and wait until we decide what to do (both for text and video types). TiA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions