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.1.0.tar.gz
(347.6 kB
view details)
Built Distribution
File details
Details for the file mimetype-description-0.1.0.tar.gz
.
File metadata
- Download URL: mimetype-description-0.1.0.tar.gz
- Upload date:
- Size: 347.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1522c43705a2f65c38930e41ec41a8d8398a5faf3e567578edec446c5502259e |
|
MD5 | afcce594f65603d37141b63707111d35 |
|
BLAKE2b-256 | fe3fedeb491e3eb73a72f23e52da699b7a16daea500fef87c119b6c9283f3cce |
File details
Details for the file mimetype_description-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mimetype_description-0.1.0-py3-none-any.whl
- Upload date:
- Size: 351.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91596c608f64d71cb299c7d6774499fb84eba7483a0fb99901cab59bb6aa0257 |
|
MD5 | 122f990aafe101d5a8f9b914375663cf |
|
BLAKE2b-256 | 8b5eb583a71d022dc9dc2c7eef412d0dead39f9a08fd99d20911055d60d8b05c |