Application details
...

PyPI python-magic

https://pypi.python.org/pypi/python-magic

File type identification using libmagic