BSD Ports

devel/py-binaryornot 0.6.0 FreeBSD

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

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
devel, python
Package size
22.1 KiB, 84.4 KiB installed

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
FreeBSDdevel/py-binaryornot0.6.0
OpenBSDdevel/py-binaryornot0.6.0
NetBSDdevel/py-binaryornot0.6.0
DragonFlydevel/py-binaryornot0.4.4_1
MidnightBSDdevel/py-binaryornot0.6.0_1

Install

Binary package:

pkg install py312-binaryornot

From the ports tree:

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

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

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

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:latest0.6.00.6.00.4.40.4.4_10.6.0
FreeBSD:14:quarterly0.6.00.6.0n/a0.4.4_10.6.0
FreeBSD:15:latest0.6.00.6.0n/a0.4.4_10.4.4_1
FreeBSD:15:quarterly0.6.00.6.0n/an/an/a
FreeBSD:16:latest0.6.00.6.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Test 2

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

Build dependencies 19
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

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

Commit history 0

No commits in the history this site was built from.