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
Release history Release notifications | RSS feed
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.0.6.tar.gz
(333.0 kB
view hashes)
Built Distribution
Close
Hashes for mimetype-description-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a40c60c43956e3a4b1a40029524dd2df85ecf661add8916f3371674feeb1b17e |
|
MD5 | b1cb6d43bcde5e394b9749c21b29c7d6 |
|
BLAKE2b-256 | 63a4bfe22f3044cc7690dbef12c6959f9b76e9d219a2d9f7e457487951f129fc |
Close
Hashes for mimetype_description-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a43907ba289ef31993bd2165960efc5eadfa6bd1cb5232386fa0e7e5f679560 |
|
MD5 | e54685ed8bcd1dac7a55081daf163ceb |
|
BLAKE2b-256 | 855625bf4ca0d1e805c0636a929bd4f56be62c775467ece6052dd74a9916648d |