Skip to content

Commit 26f31ca

Browse files
committed
readme tweaks
1 parent a9e21a9 commit 26f31ca

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.rst

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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
710
a complete explanation: https://tools.ietf.org/html/rfc7231#section-5.3.2
811

912
Installation
10-
============
13+
------------
1114

1215
Use **pip**:
1316

@@ -18,36 +21,31 @@ Use **pip**:
1821
It supports Python 2.7 - 3.5 and PyPy.
1922

2023
Functions
21-
=========
24+
---------
2225

23-
``parse_mime_type()``
24-
----------------------
26+
**parse_mime_type()**
2527

2628
Parses a mime-type into its component parts.
2729

28-
``parse_media_range()``
29-
-----------------------
30+
**parse_media_range()**
3031

3132
Media-ranges are mime-types with wild-cards and a "q" quality parameter.
3233

33-
``quality()``
34-
-------------
34+
**quality()**
3535

3636
Determines the quality ("q") of a mime-type when compared against a list of
3737
media-ranges.
3838

39-
``quality_parsed()``
40-
--------------------
39+
**quality_parsed()**
4140

4241
Just like ``quality()`` except the second parameter must be pre-parsed.
4342

44-
``best_match()``
45-
----------------
43+
**best_match()**
4644

4745
Choose the mime-type with the highest quality ("q") from a list of candidates.
4846

4947
Testing
50-
=======
48+
-------
5149

5250
Run the tests by typing: ``python mimeparse_test.py``. The tests require Python 2.6.
5351

0 commit comments

Comments
 (0)