Addition to standard module mimetypes

openxmllib adds all known MIME types for Open XML documents to the standard mimetypes module.

>>> import mimetypes
>>> mimetypes.guess_type('some-doc.docx')
(None, None)
>>> import openxmllib
>>> mimetypes.guess_type('some-doc.docx')
('application/vnd.openxmlformats-officedocument.wordprocessingml.document', None)

Read the full list of MIME types and file mane extensions.

Previous topic

Command line: openxmlinfo

Next topic

Public API

This Page