1
# -*- coding: utf-8 -*-
4 from distutils
.core
import setup
7 #from setuptools import setup, find_packages
9 setup(name
='mimeparse',
11 description
='A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.',
13 This module provides basic functions for handling mime-types. It can handle
14 matching mime-types against a list of media-ranges. See section 14.1 of
15 the HTTP specification [RFC 2616] for a complete explanation.
17 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
20 - parse_mime_type(): Parses a mime-type into its component parts.
21 - parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q' quality parameter.
22 - quality(): Determines the quality ('q') of a mime-type when compared against a list of media-ranges.
23 - quality_parsed(): Just like quality() except the second parameter must be pre-parsed.
24 - best_match(): Choose the mime-type with the highest quality ('q') from a list of candidates.
27 # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
28 'Intended Audience :: Developers',
29 'License :: OSI Approved :: MIT License',
30 'Programming Language :: Python',
31 'Topic :: Internet :: WWW/HTTP',
32 'Topic :: Software Development :: Libraries :: Python Modules',
33 'Programming Language :: Python :: 2',
34 'Programming Language :: Python :: 2.5',
35 'Programming Language :: Python :: 2.6',
36 'Programming Language :: Python :: 2.7',
37 'Programming Language :: Python :: 3',
38 'Programming Language :: Python :: 3.1',
39 'Programming Language :: Python :: 3.2',
40 'Programming Language :: Python :: 3.3',
43 author
='Joe Gregorio',
44 author_email
='joe@bitworking.org',
45 maintainer
='Joe Gregorio',
46 maintainer_email
='joe@bitworking.org',
47 url
='http://code.google.com/p/mimeparse/',
49 py_modules
=['mimeparse']