py27-python-mimeparse-1.6.0.tgz


Advertisement

Description

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
Homepage https://github.com/dbtsai/python-mimeparse
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:
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.

Alternatives

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

Requires

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

Download

Type URL
Mirror ftp.netbsd.org
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-7.8.2.21nb2.tgz 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
Advertisement
Advertisement