BSD Ports

devel/py-filemagic 1.6_1 FreeBSD

Python API for libmagic, the library behind the Unix file command

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
devel, python
Package size
17.3 KiB, 62.9 KiB installed

Description

filemagic provides a Python API for libmagic, the library behind Unix file command. It enables the Python developer to easilty test for file types from the extensive identification library that is shipped with libmagic.

Features:

  • Simple, Python API.
  • Identifies named files or strings.
  • Return a textual description, mime type or mime encoding.
  • Provide custom magic files to customize file detection.
  • Support for both Python2 and Python3.
  • Support for both CPython and PyPy.

In the other systems

SystemPortVersion
FreeBSDdevel/py-filemagic1.6_1
DragonFlydevel/py-filemagic1.6_1

Install

Binary package:

pkg install py312-filemagic

From the ports tree:

cd /usr/ports/devel/py-filemagic/ && make install clean

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

RUN_DEPENDS=	py312-filemagic>0:devel/py-filemagic

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:latest1.6_11.6_11.61.6_11.6_1
FreeBSD:14:quarterly1.6_11.6_1n/a1.6_11.6_1
FreeBSD:15:latest1.6_11.6_1n/a1.6_11.6_1
FreeBSD:15:quarterly1.6_11.6_1n/an/an/a
FreeBSD:16:latest1.6_11.6_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Test 1

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

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
filemagic-1.6.tar.gz16754e684359ef40820fe406f0ebc5bf8a78f89717bdb7fed688af68082d991d6dbf3
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.