sdk/python/I/O & Encoding/PyBinaryornot
I/O & Encoding

PyBinaryornot

Third-party Python package module — binaryornot. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.check.is_binary()Neutral
#
Signature
check.is_binary(filename)

check.is_binary function.

.helpers.get_starting_chunk()Neutral
#
Signature
helpers.get_starting_chunk(filename, length)

helpers.get_starting_chunk function.

.helpers.is_binary_string()Neutral
#
Signature
helpers.is_binary_string(bytes_to_check)

helpers.is_binary_string function.

.helpers.print_as_hex()Neutral
#
Signature
helpers.print_as_hex(s)

helpers.print_as_hex function.

Fully-Qualified Names

FQNField
binaryornotfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import binaryornot