python-puremagic
Port variant v11
Summary Magic file detection (3.11)
Package version 1.22
Homepage https://github.com/cdgriffith/puremagic
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 26 APR 2024, 06:25:00 UTC
Port created 03 JUL 2023, 21:37:39 UTC
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.8+ Using github ci to run continuous integration tests on listed platforms. Install from pypy -----------------
Configuration Switches (platform-specific settings discarded)
PY311 ON Build using Python 3.11 PY312 OFF Build using Python 3.12
Package Dependencies by Type
Build (only) python-pip:single:v11
autoselect-python:single:standard
Build and Runtime python311:single:standard
Download groups
main mirror://PYPIWHL/dd/47/c7091f42633b41788a5deb8cdca0b9d0f18e3bba881203caaa470e6c9f55
Distribution File Information
8cf3f0deb8230619ed987976cbbe7c4ebba0d19c3c26516d35085b87d23211df 35533 puremagic-1.22-py3-none-any.whl
Ports that require python-puremagic:v11
python-pspdfutils:v11 Manipulate PDF and PostScript documents (3.11)