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.2.tar.gz (3.1 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.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for mimey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d4c57407d3a262d0f7d4724692c721921ca964ca5795c4f1c4391202bd6dd1e
MD5 8a9598631a09728437b8f63f9621117b
BLAKE2b-256 e244fbe6d5e58a5046b793d92e2547a32b64bedc0722c1941a65c5ece53619aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mimey-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0971e4a28288427db1710521b098467a6a7efcb384aa07d5648db981b663d71d
MD5 7b90dff5444309924a2c46f8d4238f77
BLAKE2b-256 f5b88cb399b3de73558bd5183a1a06f6dc5b5bf511f4e31f688d29b933ade2f0

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