Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimes-0.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page