read_header

function of dascore.io.rsf.utils source

read_header(
    handle ,
    raise_on_fail = False,
)

Return a header’s bindings, the offset of a packed binary, and its text.

The offset is None when no separator follows the header text. Anything but an RSF header returns None, or raises when raise_on_fail.