BSD Ports

sysutils/py-puremagic 1.24_1 DragonFly

Pure python implementation of magic file detection

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, sysutils
Package size
39.8 KiB, 210.3 KiB installed

Description

Puremagic is a python module that will identify a file from magic numbers.

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.

In the other systems

SystemPortVersion
DragonFlysysutils/py-puremagic1.24_1
FreeBSDsysutils/py-puremagic2.2.0
NetBSDsysutils/py-puremagic2.2.0
MidnightBSDsysutils/py-puremagic1.30_2

Install

Binary package:

pkg install py311-puremagic

From DPorts:

cd /usr/dports/sysutils/py-puremagic && make install clean

Dependencies

Run dependencies 1
Required by 1