Mime.types is a project mainly written in ..., it's free.
A collection of some normal filetypes for use in Python or Apache.
Made specific to use in Python to recognize other file types, but the format can be used in Apache or other web servers as well.
import mimetypes
mimetypes.init(['mime.types'])