https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229436
Bug ID: 229436 Summary: [NEW PORT] devel/py-binaryornot: Lightweight pure Python package to check if a file is binary or not Product: Ports & Packages Version: Latest Hardware: Any URL: https://pypi.org/project/binaryornot/ OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-b...@freebsd.org Reporter: freebsd_po...@k-worx.org CC: pyt...@freebsd.org Created attachment 194799 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=194799&action=edit py-binaryornot.patch Hello, attached is the patch for the Python package devel/py-binaryornot, which guesses 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, It has also tests for numerous encodings. QA: ~~~ - poudriere (11.2-RELEASE amd64 + i386) for each py27 + py36 flavor -> OK - portlint -> OK -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ freebsd-python@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"