httk.core.datastream.bytestream_file

Classes

BytestreamFile

Backend for file-based (io.IOBase-conforming) streaming byte data.

Module Contents

class httk.core.datastream.bytestream_file.BytestreamFile(obj, **hints)

Bases: httk.core.datastream.bytestream_common.BytestreamCommon, httk.core.datastream.bytestream_backend.BytestreamBackend

Backend for file-based (io.IOBase-conforming) streaming byte data. Compressed content is transparently decompressed according to the compression hint.

Parameters:
  • obj (io.IOBase) – Open binary stream to adopt and close with this backend.

  • **hints (Any) – Backend-selection and compression hints.

Raises:

ValueError – If the compression hint is unknown.

property name: str | None

Return the adopted stream’s name when it provides one.

property closed: bool

Report whether the adopted stream is closed.