guessing mime type without extension?

Michael mogmios at mlug.missouri.edu
Tue Jul 10 12:53:03 EDT 2001


Is there a way to guess a files mime type by content rather than extension
similar to the way the Unix 'file' command works? ('file -bi <filename>'
on my RedHat box) I know I could call the Unix one using exec() or
something like that but I am always worried about calling external
programs. Thanks.

*^*^*^*
Michael McGlothlin <mogmios at mlug.missouri.edu>
http://www.kavlon.com




More information about the Python-list mailing list