Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 475 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 475 Bytes

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