embutils.utils.stream module
Stream utilities.
- date
2021
- author
Christian Wiche
- contact
- license
The MIT License (MIT)
- class embutils.utils.stream.StreamRedirect(name: str, stream_in: IO, stream_out: IO)[source]
Bases:
objectStream redirect utility implementation. Allows storing and redirect a given stream.
Class initialization.
- Parameters
name (str) – Stream redirection name (used for naming threads).
stream_in (IO[AnyStr]) – Input stream. Will be stored on buffer and redirected to output.
stream_out (IO[AnyStr]) – Output stream.
- property buffer: str
Stream buffer.