summaryrefslogtreecommitdiff
path: root/devel/py-binaryornot/pkg-descr
blob: d659f52a8a28f78072bbd20d3887aeae16a4dbbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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.

WWW: https://github.com/audreyr/binaryornot