FreeBSD.software
Home/devel/py311-binaryornot

py311-binaryornot

0.4.4_1devel

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.

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

Dependencies (2)

Required By (1)