File: quickstart.rst

package info (click to toggle)
binaryornot 0.4.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 952 kB
  • sloc: python: 348; makefile: 146; perl: 1
file content (13 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
==========
Quickstart
==========

To use BinaryOrNot in a project, import it and use `is_binary()` to guess
whether a file is binary or text.

For example::

    >>> from binaryornot.check import is_binary
    >>> is_binary('README.rst')
    False