httk.core.datastream.textstream_file

Classes

TextstreamFile

Backend for file-based (io.TextIOBase-conforming) streaming text data

Module Contents

class httk.core.datastream.textstream_file.TextstreamFile(obj, **hints)

Bases: httk.core.datastream.textstream_common.TextstreamCommon, httk.core.datastream.textstream_backend.TextstreamBackend

Backend for file-based (io.TextIOBase-conforming) streaming text data

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

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

Raises:

ValueError – If the compression hint is not a no-op mode for text-native content.

property name: str | None

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

property closed: bool

Report whether the adopted stream is closed.