BSD Ports

sysutils/py-puremagic 2.2.0 FreeBSD

Pure python implementation of magic file detection

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
414d337b23
License
MIT
Categories
sysutils, python
Package size
103.2 KiB, 501.5 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
FreeBSDsysutils/py-puremagic2.2.0
NetBSDsysutils/py-puremagic2.2.0
DragonFlysysutils/py-puremagic1.24_1
MidnightBSDsysutils/py-puremagic1.30_2

Install

Binary package:

pkg install py312-puremagic

From the ports tree:

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

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

RUN_DEPENDS=	py312-puremagic>0:sysutils/py-puremagic

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.02.2.01.141.24_12.2.0
FreeBSD:14:quarterly2.2.02.2.0n/a1.24_12.2.0
FreeBSD:15:latest2.2.02.2.0n/a1.24_11.24_1
FreeBSD:15:quarterly2.2.02.2.0n/an/an/a
FreeBSD:16:latest2.2.02.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
puremagic-2.2.0.tar.gz1.189752e+06eb4bddf07c177c4b434554b92165b67449f5a51e152b976202d6254498810eef
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
414d337b23 Pete Diamond sysutils/py-puremagic: Update to 2.2.0
Co-authored-by: Michael Osipov <[email protected]> PR: 298690 Approved by: [email protected] (maintainer)