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