Search notes:
Python standard library: mimetypes
guess_type
from mimetypes import guess_type print(guess_type('/usr/share/mime/text/css.xml'))
See also
standard library
Index