Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install mimeparse

How to install mimeparse

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mimeparse
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Windows (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Mac OS X (10.5+)
0.1.3 Available View build log
0.1.2 Available View build log
Linux (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Linux (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
0.1.3 Available View build log
 
Author
License
MIT
Imports
Lastest release
version 0.1.3 on Jan 5th, 2011

This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
Contents:
  • parse_mime_type(): Parses a mime-type into its component parts.
  • parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q' quality parameter.
  • quality(): Determines the quality ('q') of a mime-type when compared against a list of media-ranges.
  • quality_parsed(): Just like quality() except the second parameter must be pre-parsed.
  • best_match(): Choose the mime-type with the highest quality ('q') from a list of candidates.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.