Skip to content

Module src.settings

View Source
# SPDX-FileCopyrightText: 2024 Benedikt Franke <benedikt.franke@dlr.de>
# SPDX-FileCopyrightText: 2024 Florian Heinrich <florian.heinrich@dlr.de>
#
# SPDX-License-Identifier: Apache-2.0

from logging import getLogger

from dlr.fl.client.settings import Settings as SettingsBase
from dlr.ki.logging import load_default


def main() -> None:
    from dlr.fl.client.__main__ import default_main

    load_default("logs/train.log")
    getLogger("fl.client").info("logging initialized")
    default_main()


class Settings(SettingsBase):
    MAIN_MODULE: str = "settings.main"

Functions

main

def main() -> None
View Source
def main() -> None:
    from dlr.fl.client.__main__ import default_main

    load_default("logs/train.log")
    getLogger("fl.client").info("logging initialized")
    default_main()

Classes

Settings

class Settings(
    /,
    *args,
    **kwargs
)

Client settings.

View Source
class Settings(SettingsBase):
    MAIN_MODULE: str = "settings.main"

Ancestors (in MRO)

  • dlr.fl.client.settings.Settings

Class variables

COMMUNICATION_MODULE
FL_DEMONSTRATOR_BASE_URL
FL_DEMONSTRATOR_TRAINING_SCRIPT_EXECUTOR
FL_DEMONSTRATOR_TRAINING_SCRIPT_PATH
FL_DEMONSTRATOR_TRAINING_WORKING_DIRETORY
MAIN_MODULE
SERVER_HOST
SERVER_PORT