Add mimetypes.mimesniff
Hi, A few weeks ago, I suggested adding mimetypes.mimesniff on stdlib. (https://bugs.python.org/issue40841, https://github.com/python/cpython/pull/20720) Detecting MIME types well is an important feature and we already have mimetypes detection library but AFAIK it is not good enough. Note that some of our stdlib module already use the sniffing algorithm (e.g imghdr) The question is how exactly the mime sniffing should be done in terms of file formats and algorithm. Luckily, WHATWG published the standard for mime sniffing, and I think we should follow it. (https://mimesniff.spec.whatwg.org/) So I created the issue on the bpo and implemented it. I 'd like to listen to all your opinions :) -- Software Development Engineer at Kakao corp. Tel: +82 10-3353-9127 Email: donghee.na92@gmail.com | denny.i@kakaocorp.com Linkedin: https://www.linkedin.com/in/dong-hee-na-2b713b49/
participants (1)
-
Dong-hee Na