Skip to main content

Human readable MIME type descriptions

Project description

MIME Type Description

Human readable MIME type descriptions based on shared-mime-info.

Install

pip install mimetype-description

Usage

from mimetype_description import guess_mime_type, get_mime_type_description

mime_type = guess_mime_type('file.txt')
description = get_mime_type_description(mime_type)
print(description)  # plain text document

Test

pytest

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

mimetype-description-0.1.0.tar.gz (347.6 kB view hashes)

Uploaded Source

Built Distribution

mimetype_description-0.1.0-py3-none-any.whl (351.9 kB view hashes)

Uploaded Python 3

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