You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the most effective consistent pure Python module I've found at detecting mime types for a server without relying on what happens to be installed on the server to decide what to detect. For example, I've attached a spreadsheet, extension_detection_comparison.xlsx which gives a comparison between:
I highlighted in red things that seem wrong, in yellow things that are questionable, etc. This included comparing them to what python-magic project detected based on the file contents of my sample files.
You can see how much better mimetype-description does in the attachment.
It would be nice to self-promote so that others coming to find this module know how good it is...
The text was updated successfully, but these errors were encountered:
Hey @davidfraser, thanks for your comments and comparison, I actually had to implement this because I needed an accurate way of knowing the type of a given file and eight months ago I didn't find anything useful, this relies in shared-mime-info and the xml file has to be updated from time to time to cover new inclusions. Feel free to create PRs at any time, I will keep an eye on it since I have seen some activity here.
This is the most effective consistent pure Python module I've found at detecting mime types for a server without relying on what happens to be installed on the server to decide what to detect. For example, I've attached a spreadsheet, extension_detection_comparison.xlsx which gives a comparison between:
I highlighted in red things that seem wrong, in yellow things that are questionable, etc. This included comparing them to what python-magic project detected based on the file contents of my sample files.
You can see how much better mimetype-description does in the attachment.
It would be nice to self-promote so that others coming to find this module know how good it is...
The text was updated successfully, but these errors were encountered: