Skip to content

Conversation

@LsHanaha
Copy link
Contributor

@LsHanaha LsHanaha commented Sep 11, 2025

Weeell, we have some problems. Puremagic is okay, until you start checking Microsoft extensions. I dunno, maybe the developer has some beef with MS or smth like this. As an example for .xls files, puremagic.from_string(file) returns ''. pure.magic_file(file) returns different mime_type, that we got used to. So, either we have to change mime_types and method to magic_file. Or swap completely towards python-magic. I prefer the second one. If you don't mind, let's stick with it

@LsHanaha LsHanaha marked this pull request as ready for review September 11, 2025 19:06
@LsHanaha LsHanaha requested a review from vrslev September 11, 2025 19:09
@vrslev
Copy link
Contributor

vrslev commented Sep 11, 2025

The issue with python-magic is that it requires external dependency. Perhaps, let’s try magika? #13

@LsHanaha
Copy link
Contributor Author

The issue with python-magic is that it requires external dependency. Perhaps, let’s try magika? #13

You know, magika looks very promising. Let's try

@lesnik512 lesnik512 merged commit cd18bc8 into main Sep 12, 2025
6 checks passed
@lesnik512 lesnik512 deleted the some-imprvmnts-3 branch September 12, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants