blob: d96b0fe2983c0a4cc20f6fd696bc04ecaed4f6a8 (
plain)
1
2
3
4
5
6
7
8
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
|
=====
API
=====
There are two major features provided by this package: determining
content types, and parsing text representations of content types into
structured data.
.. currentmodule:: zope.contenttype
.. note:: When this module is imported, it uses :func:`add_files` to
extend the standard :mod:`mimetypes` database with a set of common
office and multimedia types and filename extensions.
.. tip:: When used as the main module (e.g., ``python -m
zope.contenttype``) this module will print out the
:mod:`mimetypes` database.
Determining Content Types
=========================
.. autofunction:: guess_content_type
.. autofunction:: text_type
Utility Functions
-----------------
.. autofunction:: add_files
Parsing Text Representations
============================
.. automodule:: zope.contenttype.parse
|