mimesniff 1.1.1
pip install mimesniff
Latest version
Released:
Pure python mimesniff implementation of https://mimesniff.spec.whatwg.org
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: Dong-hee Na
- Requires: Python >=3.4
Classifiers
- Programming Language
Project description
Pure python mimesniff implementation of https://mimesniff.spec.whatwg.org
API interface is similar with API of python standard library
Install
pip install mimesniff
Usage
import mimesniff
res = mimesniff.what('sample.mp3')
print(res)
# audio/mpeg
with open('sample.mp3', 'rb') as fin:
res = mimesniff.what(fin)
print(res)
# audio/mpeg
with open('sample.mp3', 'rb') as fin:
header = fin.read(512)
res = mimesniff.what(header)
print(res)
# audio/mpeg
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: Dong-hee Na
- Requires: Python >=3.4
Classifiers
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mimesniff-1.1.1.tar.gz
.
File metadata
- Download URL: mimesniff-1.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bfd57a566d736dd8673eea3eedd699bde92066974f693dd7c2d48347b2cbde0 |
|
MD5 | ea466c2fd7ea03700489d95354f5de47 |
|
BLAKE2b-256 | b7f97a7e7e9e5a89a6ba59e152b893a8be761083455aeb7749a0452ef975aeb3 |
File details
Details for the file mimesniff-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: mimesniff-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d1245f78e4e9940342cc4df1025d5afcd38bc96ad047e84a9a434796b8c20f |
|
MD5 | e6379cda7d7d5109599139a195030011 |
|
BLAKE2b-256 | 92465c7deba62f6c383f6532d820b2c58f7244a9a48fab64d1d4087087f4d182 |