xain_fl package

XAIN FL init

Submodules

xain_fl.logger module

XAIN FL structured logger

xain_fl.logger.add_pid_thread(_, __, event_dict)

Add the pid and the name of the thread to the event dict.

Args:

event_dict: The event dict of structlog.

Return type

dict

Returns

The updated event dict.

xain_fl.logger.configure_aimetrics_logger()

Configure a logger named “aimetrics” with a configurable log level.

Return type

None

xain_fl.logger.configure_structlog(config)

Configure structlog.

Parameters

config (LoggingConfig) – The logging config.

Return type

None

xain_fl.serve module

XAIN FL serving

xain_fl.serve.serve(coordinator, server_config)

Start a coordinator service and keep it running until an interruption signal (SIGINT) is received.

Parameters
Return type

None