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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fast_mime-0.1.0-py3-none-any.whl
(49.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67608ae08b53bfa66a37247923bf207444b3fad9597b647af0ee5595545fa14d
|
|
| MD5 |
d5eeda2e23c24c0271132d33bc4eb9e7
|
|
| BLAKE2b-256 |
ebe105dd3d8b7227da03c6e99b421ebca59fe771ff50aa233cd282959b628523
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aac2a8a41286f78fe9608a98573b3723a74b83df94ac011b0fe629475af15bd
|
|
| MD5 |
4e1031e97be724e3e1c7f1fcc6697d2a
|
|
| BLAKE2b-256 |
8be2fca8fa0a2e734e75e88b238c41b76f8c6bd41ae81984ecd79c434ab51719
|