package.constants module

pathなどの定数やaws/gcpクライアントのようなグローバルにひとつ存在すればよいstatelessな変数やインスタンスを配置

class package.constants.ColoredStreamHandler(stream=None)

ベースクラス: StreamHandler

cmap = {'ALERT': '\x1b[0;37;41mALERT\x1b[0m', 'CRITICAL': '\x1b[0;37;41mCRITICAL\x1b[0m', 'DEBUG': '\x1b[0;36mDEBUG\x1b[0m', 'ERROR': '\x1b[0;31mERROR\x1b[0m', 'INFO': '\x1b[0;32mINFO\x1b[0m', 'TRACE': '[TRACE]', 'WARN': '\x1b[0;33mwWARN\x1b[0m', 'WARNING': '\x1b[0;33mWARN\x1b[0m'}
emit(record: LogRecord) None

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.

class package.constants.Config(strategy: Literal['GP-EI', 'TPE', 'CMA-ES'], date_start: datetime.date, MD1: package.module1.config.MD1Config)

ベースクラス: object

MD1: MD1Config
date_start: date
strategy: Literal['GP-EI', 'TPE', 'CMA-ES']
package.constants.getChildLogger(name)
package.constants.load_config()
package.constants.print(message: str, level: str = 'info')