[ 源代码: puremagic ]
软件包:python3-puremagic(1.28-1)
pure-Python module to identify files by their magic signature
Puremagic is a pure-Python module to identify files by their magic numbers. It is fast, lightweight, minimalistic, cross-platform, and doesn't have dependencies. It can serve as a stand-in for python-magic, but its own magic_file() and magic_string() function are more powerful and also display a confidence score and possible duplicate matches.