check if a file is binary or text (Python 2 module)
This Python package provides a function to check if a file is a text file or a binary file. It uses the same heuristic as file(1) by looking at the first 1024 bytes of the file and checks that all characters are printable.
This package contains the Python 2 module.
Debian: Vincent Bernat <firstname.lastname@example.org>
26 May 2014
Leaders and contributors
Resources and communication
|Debian (Ref) (R)||https://tracker.debian.org/pkg/binaryornot|
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.