python-puremagic
Subpackage Descriptions
single |
=========
puremagic
=========
puremagic is a pure python module that will identify a file based off
it's magic numbers.
|CoverageStatus| |License| |PyPi|
It is designed to be minimalistic and inherently cross platform
compatible. It is also designed to be a stand in for python-magic, it
incorporates the functions from\_file(filename[, mime]) and
from\_string(string[, mime]) however the magic\_file() and
magic\_string() are more powerful and will also display confidence and
duplicate matches.
It does NOT try to match files off non-magic string. In other words it
will not search for a string within a certain window of bytes like
others might.
Advantages over using a wrapper for 'file' or 'libmagic':
- Faster
- Lightweight
- Cross platform compatible
- No dependencies
Disadvantages:
- Does not have as many file types
- No multilingual comments
- Duplications due to small or reused magic numbers
(Help fix the first two disadvantages by contributing!)
Compatibility
~~~~~~~~~~~~~
- Python 3.7+
Using github ci to run continuous integration tests on listed platforms.
Install from pypy
-----------------
|
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12
PY313 OFF Build using Python 3.13
Package Dependencies by Type
Download groups
main |
mirror://PYPIWHL/50/e3/6d0ad0dc83cf0871198a68d527c61e443c10509a93db1e1666be9d1bf9c6 |
Distribution File Information
2c3cfcde77f0b1560f1898f627bd388421d2bd64ec94d8d25f400f7742a4f109 43279 python-src/puremagic-1.29-py3-none-any.whl
Ports that require python-puremagic:v12