skip to navigation
skip to content

Not Logged In

mimes 0.3

Parses mimetype-strings (RFC 1049, 2045, 2047 and 2231) and allows comparing these.

Package Documentation

https://travis-ci.org/mbr/mimes.png?branch=master

An internet MIME-message is usually accompanied by a content-type string like text/plain or application/collection+json. The mimes library allows parsing these and can if types are subsets of another -- a parser that handles application/json, for example, will be perfectly fine handing the collection+json type with less semantics.

It also parses more complex strings including parameters (e.g. application/vnd.company.someapi; version=3) and can construct these as well.

See the docs for details.

 
File Type Py Version Uploaded on Size
mimes-0.3.tar.gz (md5, pgp) Source 2014-02-18 2KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 42 downloads in the last week
  • 254 downloads in the last month