Skip to main content

Fast MIME

Support Rails/Marcel style MIME for Python.

It uses Apache Tike's rule.

Install

pip install fast-mime

Usage

from fast_mime import MIME
with open("a.pdf") as fi:
    mime = MIME(file=fi, name="a.pdf", declared_type="application/pdf", extension=".pdf")
    # all parameters are optional

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_mime-0.1.0.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

fast_mime-0.1.0-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file fast_mime-0.1.0.tar.gz.

File metadata

  • Download URL: fast_mime-0.1.0.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for fast_mime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67608ae08b53bfa66a37247923bf207444b3fad9597b647af0ee5595545fa14d
MD5 d5eeda2e23c24c0271132d33bc4eb9e7
BLAKE2b-256 ebe105dd3d8b7227da03c6e99b421ebca59fe771ff50aa233cd282959b628523

See more details on using hashes here.

File details

Details for the file fast_mime-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fast_mime-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0

File hashes

Hashes for fast_mime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0aac2a8a41286f78fe9608a98573b3723a74b83df94ac011b0fe629475af15bd
MD5 4e1031e97be724e3e1c7f1fcc6697d2a
BLAKE2b-256 8be2fca8fa0a2e734e75e88b238c41b76f8c6bd41ae81984ecd79c434ab51719

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page