dev-python/
binaryornot

Ultra-lightweight pure Python package to guess whether a file is binary or text

https://github.com/binaryornot/binaryornot