py27-python-mimeparse - Module provides basic functions for parsing mime-type names

Property Value
Distribution NetBSD 7.0
Repository NetBSD i386
Package filename py27-python-mimeparse-1.6.0.tgz
Package name py27-python-mimeparse
Package version 1.6.0
Package release -
Package architecture i386
Package type tgz
Category python www
License mit
Maintainer -
Download size 6.37 KB
Installed size 21.58 KB
A module provides basic functions for parsing mime-type names and matching them
against a list of media-ranges.
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:
* 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
* best_match(): Choose the mime-type with the highest quality ("q") from a list
of candidates.


Package Version Architecture Repository
py27-python-mimeparse-1.6.0.tgz 1.6.0 amd64 NetBSD
py27-python-mimeparse - - -


Name Value
py27-setuptools >= 0.8
python27 >= 2.7.1nb2


Type URL
Binary Package py27-python-mimeparse-1.6.0.tgz
Source Package py27-python-mimeparse

Install Howto

Install py27-python-mimeparse tgz package:

# pkg_add py27-python-mimeparse

See Also

Package Description
py27-python-slugify-1.2.6nb1.tgz Slugify application that handles Unicode
py27-python-sql-0.9.tgz Python library to write SQL queries
py27-pythonz-1.2.2.tgz Installation manager supporting CPython, Stackless, PyPy and Jython
py27-pytoml-0.1.20.tgz TOML-0.4.0 parser/writer for Python
py27-pytz-2018.9.tgz World timezone definitions, modern and historical
py27-pyutil-3.1.0.tgz Collection of mature utilities for Python programmers
py27-pyvex- Python bindings for Valgrind's VEX IR
py27-pywebdav-0.9.8.tgz Standards compliant Python WebDAV server and library
py27-qrcode-6.1.tgz Python QR Code image generator
py27-qt4-4.12.1nb1.tgz Python binding for Qt4
py27-quadprog-0.1.6.tgz Solver for a strictly convex quadratic program
py27-queuelib-1.5.0.tgz Collection of persistent (disk-based) queues
py27-quickbooks-0.6.0.tgz Python library for accessing the Quickbooks API
py27-quixote-2.9.1.tgz Framework for writing Python web application
py27-qwt-qt4-5.2.0nb4.tgz Python bindings for the Qwt QT4 C++ class library