gdesk.core.stdinout module

class gdesk.core.stdinout.ErrLogStream

Bases: io.TextIOBase

write(text)

Write string to stream. Returns the number of characters written (which is always equal to the length of the string).

class gdesk.core.stdinout.FlushPipeStream(streamqueue, flusher)

Bases: io.TextIOBase

ansi(text)
flush()

Flush write buffers, if applicable.

This is not implemented for read-only and non-blocking streams.

write(text)

Write string to stream. Returns the number of characters written (which is always equal to the length of the string).

class gdesk.core.stdinout.FlushReducer(flusher)

Bases: object

close()
reduce()
class gdesk.core.stdinout.GhStreamHandler(stream)

Bases: logging.Handler

emit(record)

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

setStream(stream)
class gdesk.core.stdinout.PopupHandler(level=0)

Bases: logging.Handler

emit(record)

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

class gdesk.core.stdinout.ProcessStdInput(stdin_queue=None)

Bases: io.TextIOBase

close()

Flush and close the IO object.

This method has no effect if the file is already closed.

read()

Read at most n characters from stream.

Read from underlying buffer until we have n characters or we hit EOF. If n is negative or omitted, read until EOF.

stdin_queues = {}
class gdesk.core.stdinout.StdErrRouter

Bases: gdesk.core.stdinout.StreamRouter

class gdesk.core.stdinout.StdOutRouter

Bases: gdesk.core.stdinout.StreamRouter

class gdesk.core.stdinout.StreamRouter

Bases: object

Pass the calls to a threading dependent stream

copy_to_thread(to_tid, from_tid=None)
route_stream(stream, ident=None)
property stream
unregister(ident=None)
gdesk.core.stdinout.enable_ghstream_handler()