trainui

Module Contents

Classes

MsgHandler

A handler class which writes logging records, appropriately formatted,

uinoplfm

Functions

get_default_examples()

get_default_input()

get_default_info()

get_platforms()

get_default_platform(mllearntype=dbk.loglogtypestr)

class trainui.MsgHandler

Bases: logging.StreamHandler

A handler class which writes logging records, appropriately formatted, to a stream. Note that this class does not close the stream, as sys.stdout or sys.stderr may be used.

add_servmgr(self, servmgr)
add(self, msgstr, msgkey, msgjson)
add_callback(self, callbacks)
emit(self, record)

Emit a record.

If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.

sendmsg(self, msgnm)
docallback(self, logmsg, msgstr)
trainui.get_default_examples()
trainui.get_default_input()
trainui.get_default_info()
trainui.get_platforms()
trainui.get_default_platform(mllearntype=dbk.loglogtypestr)
class trainui.uinoplfm
getPlatformNm(self, full=False)