No project description provided
Project description
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
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
fast_mime-0.1.0.tar.gz
(47.5 kB
view hashes)
Built Distribution
fast_mime-0.1.0-py3-none-any.whl
(49.7 kB
view hashes)
Close
Hashes for fast_mime-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aac2a8a41286f78fe9608a98573b3723a74b83df94ac011b0fe629475af15bd |
|
MD5 | 4e1031e97be724e3e1c7f1fcc6697d2a |
|
BLAKE2b-256 | 8be2fca8fa0a2e734e75e88b238c41b76f8c6bd41ae81984ecd79c434ab51719 |