Skip to content

Mimetype description Python library based in shared-mime-info

License

Notifications You must be signed in to change notification settings

DanielOverdevestPZH/mimetype-description

 
 

Repository files navigation

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

About

Mimetype description Python library based in shared-mime-info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%