./www/py-python-mimeparse, Module provides basic functions for parsing mime-type names

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.6.0, Package name: py27-python-mimeparse-1.6.0, Maintainer: pkgsrc-users

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.


Required to run:
[lang/python27]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 675c262a74635f5e5326bb2dd1834f97c826ffa6
RMD160: 7358b9daf8823bb02a81bba1ebd400bdebcc28f2
Filesize: 6.388 KB

Version history: (Expand)


CVS history: (Expand)


   2017-09-16 21:27:31 by Thomas Klausner | Files touched by this commit (372)
Log message:
Reset maintainer
   2017-04-25 22:34:04 by Filip Hajny | Files touched by this commit (3) | Package updated
Log message:
Update www/py-python-mimeparse to 1.6.0.

No changelog published, but this seems to be the currently maintained
branch (rather than the previous 0.x one).
   2016-06-08 19:43:49 by Thomas Klausner | Files touched by this commit (356)
Log message:
Switch to MASTER_SITES_PYPI.
   2015-11-04 03:47:43 by Alistair G. Crooks | Files touched by this commit (758)
Log message:
Add SHA512 digests for distfiles for www category

Problems found locating distfiles:
	Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
	Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
	Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
	Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
	Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
	Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
	Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
	Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2014-12-31 14:57:34 by Thomas Klausner | Files touched by this commit (125)
Log message:
Improve EGG_NAME default to work for packages with '-' in their name.
Remove now unnecessary overrides in various packages.
   2014-06-02 05:19:30 by Blue Rats | Files touched by this commit (4)
Log message:
Import py27-python-mimeparse-0.1.4 as www/py-python-mimeparse.

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/rfc … ml#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.