BSD Ports

devel/py-binaryornot 0.4.4_1 DragonFly

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

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel, python
Package size
9.4 KiB, 29.5 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
DragonFlydevel/py-binaryornot0.4.4_1
FreeBSDdevel/py-binaryornot0.6.0
OpenBSDdevel/py-binaryornot0.6.0
NetBSDdevel/py-binaryornot0.6.0
MidnightBSDdevel/py-binaryornot0.6.0_1
HardenedBSDdevel/py-binaryornot0.6.0
GhostBSDdevel/py-binaryornot0.6.0

Install

Binary package:

pkg install py311-binaryornot

From DPorts:

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

Dependencies

Run dependencies 2
Required by 1