File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Python-MimeParse
2+ ================
3+
14.. image :: https://travis-ci.org/dbtsai/python-mimeparse.svg?branch=master
25 :target: https://travis-ci.org/dbtsai/python-mimeparse
36
@@ -7,7 +10,7 @@ handle matching mime-types against a list of media-ranges. See section
710a complete explanation: https://tools.ietf.org/html/rfc7231#section-5.3.2
811
912Installation
10- ============
13+ ------------
1114
1215Use **pip **:
1316
@@ -18,36 +21,31 @@ Use **pip**:
1821 It supports Python 2.7 - 3.5 and PyPy.
1922
2023Functions
21- =========
24+ ---------
2225
23- ``parse_mime_type() ``
24- ----------------------
26+ **parse_mime_type() **
2527
2628Parses a mime-type into its component parts.
2729
28- ``parse_media_range() ``
29- -----------------------
30+ **parse_media_range() **
3031
3132Media-ranges are mime-types with wild-cards and a "q" quality parameter.
3233
33- ``quality() ``
34- -------------
34+ **quality() **
3535
3636Determines the quality ("q") of a mime-type when compared against a list of
3737media-ranges.
3838
39- ``quality_parsed() ``
40- --------------------
39+ **quality_parsed() **
4140
4241Just like ``quality() `` except the second parameter must be pre-parsed.
4342
44- ``best_match() ``
45- ----------------
43+ **best_match() **
4644
4745Choose the mime-type with the highest quality ("q") from a list of candidates.
4846
4947Testing
50- =======
48+ -------
5149
5250Run the tests by typing: ``python mimeparse_test.py ``. The tests require Python 2.6.
5351
You can’t perform that action at this time.
0 commit comments