httk.core.datastream.bytestream_filename

Classes

BytestreamFilename

Backend for streaming byte data via operations on a file specified by a filename.

Module Contents

class httk.core.datastream.bytestream_filename.BytestreamFilename(filename, **hints)

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

Backend for streaming byte data via operations on a file specified by a filename. Compressed content is transparently decompressed according to the compression hint.

Parameters:
  • filename (str | pathlib.Path) – File path to open lazily for binary reading.

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

Raises:

ValueError – If the compression hint is unknown.

property name: str | None

Return the configured filename.

property closed: bool

Report whether the filename backend is closed.