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.1.tar.gz (343.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimetype_description-0.1.1-py3-none-any.whl (346.9 kB view details)

Uploaded Python 3

File details

Details for the file mimetype_description-0.1.1.tar.gz.

File metadata

  • Download URL: mimetype_description-0.1.1.tar.gz
  • Upload date:
  • Size: 343.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for mimetype_description-0.1.1.tar.gz
Algorithm Hash digest
SHA256 06ff34ac416a209fda7db322447352e7adb7d2800f473ce5e8c4c89847deb389
MD5 e7ec20e398de8c86dba8e6cf3f37c89a
BLAKE2b-256 eff18b69a54aebdfb9be618d262af9a50db6fd7d596424ae3c23082afbb9fd30

See more details on using hashes here.

File details

Details for the file mimetype_description-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mimetype_description-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3aedb7bd5639f26c21c4c9e4577e909696bd71cf4758ad6deceedc15d4b20708
MD5 7fe29bc8e3c82dbcef3fbe7e410c02ec
BLAKE2b-256 3ce6d7ee0eb7703586b59a4c4ab6d18c66aabed7d3703d744835cc4c76833904

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page