Filetype information
<p>I'm in the process of writing a python script, and I want to find out information about a file, such as for example a mime-type (or any useful depiction of what a file contains).</p>

<p>I've heard about python-magic, but I'm really looking for <em>the</em> solution that will allow me to find this information, without requiring the installation of additional packages.</p>

<p>Am I stuck to maintaining a list of file extensions, or does python have something in the standard library? I was not able to find it in the docs.</p>
