Skip to main content

No project description provided

Project description

mimey

Motivation

A fast mime parser written in Rust and exposed as python package.

Installation

uv add mimey

or

pip install mimey

Usage

Detect a type

>>> import mimey
>>> mimey.detect_type(b"\x89PNG\r\n\x1a\n")
'.png'

Detect the mimetype

>>> import mimey
>>> mimey.detect_mime(b"\x89PNG\r\n\x1a\n")
'image/png'

TODOs

  • Add a mechanism to register new mime types.

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

mimey-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

mimey-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (208.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: mimey-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.4

File hashes

Hashes for mimey-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e22bedfab3ec4e77e8d704761ef445d05ab39cd827de7bd19551c11100da60c3
MD5 7f7f1b6dbf30fe8dfe9f02a045392c56
BLAKE2b-256 70dbe13883db6d0633d9bd1ad0f7eb2edea83805ae358288b6f8495a1bf0ccb1

See more details on using hashes here.

File details

Details for the file mimey-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mimey-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aab71177a5ae72f35b46cf21a3eba8fbb3ff7d3ded006a3cfedab5647d777d7d
MD5 0cd64eab2b7fc51b24b1bffccbaf444b
BLAKE2b-256 611a3ac9ec123edc5b68e1f0433b2be33bab9af2bf5c7331d5b433a3c00dcc24

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