FreeBSD.software
Home/devel/py311-binaryornot

py311-binaryornot

0.4.4_1

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

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.

Origin: devel/py-binaryornot
Category: devel
Size: 29.5KiB
License: BSD3CLAUSE
Maintainer: kai@FreeBSD.org
Dependencies: 2 packages
Required by: 1 packages
$pkg install py311-binaryornot

Dependencies (2)

Required By (1 packages)

More in devel