BSD Ports

sysutils/py-puremagic 1.30_2 MidnightBSD

Pure python implementation of magic file detection

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
sysutils, python

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
MidnightBSDsysutils/py-puremagic1.30_2
FreeBSDsysutils/py-puremagic2.2.0
NetBSDsysutils/py-puremagic2.2.0
DragonFlysysutils/py-puremagic1.24_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}puremagic

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}puremagic>0:sysutils/py-puremagic

Dependencies

As this port's Makefile names them.

Test 1

Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
puremagic-1.30.tar.gz314785f9ff7ac157d54e9cf3bff1addfd97233548e75e685282d84ae11e7ffee1614c9
Master sites 1
  • PYPI