httk.core.datastream.textstream_string

Classes

TextstreamString

Backend for streaming text backed by an actual string

Module Contents

class httk.core.datastream.textstream_string.TextstreamString(content, **hints)

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

Backend for streaming text backed by an actual string

Parameters:
  • content (str) – Text to expose as a stream.

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

Raises:

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

s: str
property name: str | None

Report that an in-memory stream has no source name.

property closed: bool

Report whether the in-memory stream is closed.