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)[source]

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[source]
property name: str | None[source]

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

property closed: bool[source]

Report whether the in-memory stream is closed.