BSD Ports

devel/py-binaryornot 0.6.0_1 MidnightBSD

Lightweight pure Python package to check if a file is binary or text

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3
Categories
devel, python

Description

Ultra-lightweight library to guess whether a file is binary or text, using a heuristic similar to Perl's pp_fttext and its analysis. Tests are available for these file types:

  • Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst

  • Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb

It has also tests for numerous encodings.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-binaryornot0.6.0_1
FreeBSDdevel/py-binaryornot0.6.0
OpenBSDdevel/py-binaryornot0.6.0
NetBSDdevel/py-binaryornot0.6.0
DragonFlydevel/py-binaryornot0.4.4_1
HardenedBSDdevel/py-binaryornot0.6.0
GhostBSDdevel/py-binaryornot0.6.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}binaryornot

From mports:

cd /usr/mports/devel/py-binaryornot && make install clean

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}binaryornot>0:devel/py-binaryornot

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Build dependencies 1
Run dependencies 1
Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
binaryornot-0.6.0.tar.gz478718cc8d57cfa71d74ff8c28a7726734d53a851d02fad9e3a5581fb807f989f702f0
Master sites 1
  • PYPI