src.core.config module

This file contains a class for handling the current configuration of the program

class src.core.config.ConfigHandler[source]

Bases: object

general handler for configs. This file loads an instance of this.

volatile_settings

settings, which aren’t written to files and load on runtime.

Type:

dict[str,str]

internal_settings

internal settings, which determine the filepath for general settings

Type:

dict[str,str]

general_settings

all general settings combined into one dict.

Type:

dict[Configs, dict[str, str]]

needsReconfigure

returns if the settings need to be reconfigured

Type:

property

reconfigure[source]

reconfigures all settings according to the blueprints in this file

Type:

function

createInternals[source]

blueprint function for internal settings

Type:

function

writeSettings[source]

writes current settings to file

Type:

function

writeInternals[source]

writes the current internal settings to file

Type:

function

createInternals()[source]
createPlaceholder()[source]
getFiles(config)[source]
Parameters:

config (Configs)

internal_settings: dict[str, str]

rtfesafes

property needsReconfigure: bool
reconfigure()[source]
setProfile(name='placeholder')[source]
Parameters:

name (str)

writeInternals()[source]
writeSettings()[source]
class src.core.config.Configs(*values)[source]

Bases: StrEnum

DB = 'connections'
MAIN = 'lsas'
PROF = 'profiles'
static _generate_next_value_(name, start, count, last_values)

Return the lower-cased version of the member name.

src.core.config.config: ConfigHandler = <src.core.config.ConfigHandler object>

the config instance, used by the whole project.

src.core.config.locPathInt_c: str = '.internal/'

location for the internal config file

src.core.config.locPathSet_c: str = 'config/'

location for general settings

Dependency Diagrams (without externals):

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.apis.ddragon" -> "src.core.config";
  "src.core.apis.riot" -> "src.core.config";
  "src.core.io.csv" -> "src.core.config";
  "src.core.io.mariadb" -> "src.core.config";
  "src.core.io.mariadb" -> "src.core.process.manager";
  "src.core.io.wrapper" -> "src.core.config";
  "src.core.io.wrapper" -> "src.core.io.csv";
  "src.core.io.wrapper" -> "src.core.io.mariadb";
  "src.core.process.manager" -> "src.core.config";
  "src.core.process.reading" -> "src.core.config";
  "src.core.process.reading" -> "src.core.io.wrapper";
  "src.core.process.reading" -> "src.core.process.manager";
  "src.core.process.writing" -> "src.core.config";
  "src.core.process.writing" -> "src.core.io.csv";
  "src.core.process.writing" -> "src.core.io.mariadb";
  "src.main" -> "src.core.config";
  "src.main" -> "src.core.io.mariadb";
  "src.main" -> "src.visuals.gui";
  "src.visuals.gui" -> "src.core.config";
  "src.visuals.gui" -> "src.visuals.windows.main_window";
  "src.visuals.windows.analytics_space" -> "src.core.config";
  "src.visuals.windows.analytics_space" -> "src.visuals.windows.spaces.templater";
  "src.visuals.windows.main_window" -> "src.core.apis.riot";
  "src.visuals.windows.main_window" -> "src.core.config";
  "src.visuals.windows.main_window" -> "src.core.io.mariadb";
  "src.visuals.windows.main_window" -> "src.core.io.wrapper";
  "src.visuals.windows.main_window" -> "src.core.process.reading";
  "src.visuals.windows.main_window" -> "src.visuals.windows.analytics_space";
  "src.visuals.windows.main_window" -> "src.visuals.windows.maria_dialog";
  "src.visuals.windows.main_window" -> "src.visuals.windows.sample_dialog";
  "src.visuals.windows.main_window" -> "src.visuals.windows.settings";
  "src.visuals.windows.maria_dialog" -> "src.core.config";
  "src.visuals.windows.maria_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.profile_dialog" -> "src.core.config";
  "src.visuals.windows.profile_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.sample_dialog" -> "src.core.apis.riot";
  "src.visuals.windows.sample_dialog" -> "src.core.config";
  "src.visuals.windows.sample_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.settings" -> "src.core.config";
  "src.visuals.windows.settings" -> "src.core.io.mariadb";
  "src.visuals.windows.settings" -> "src.core.process.manager";
  "src.visuals.windows.settings" -> "src.visuals.windows.profile_dialog";
  "src.visuals.windows.spaces.templater" -> "src.core.config";
  "src.visuals.windows.spaces.templater" -> "src.core.io.wrapper";
}

Import dependencies (collapsed)

Dependency Diagrams:

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.apis.ddragon" -> "src.core.config";
  "src.core.apis.riot" -> "src.core.config";
  "src.core.io.csv" -> "src.core.config";
  "src.core.io.mariadb" -> "src.core.config";
  "src.core.io.mariadb" -> "src.core.process.manager";
  "src.core.io.wrapper" -> "src.core.config";
  "src.core.io.wrapper" -> "src.core.io.csv";
  "src.core.io.wrapper" -> "src.core.io.mariadb";
  "src.core.process.manager" -> "src.core.config";
  "src.core.process.reading" -> "src.core.config";
  "src.core.process.reading" -> "src.core.io.wrapper";
  "src.core.process.reading" -> "src.core.process.manager";
  "src.core.process.writing" -> "src.core.config";
  "src.core.process.writing" -> "src.core.io.csv";
  "src.core.process.writing" -> "src.core.io.mariadb";
  "src.main" -> "src.core.config";
  "src.main" -> "src.core.io.mariadb";
  "src.main" -> "src.visuals.gui";
  "src.visuals.gui" -> "src.core.config";
  "src.visuals.gui" -> "src.visuals.windows.main_window";
  "src.visuals.windows.analytics_space" -> "src.core.config";
  "src.visuals.windows.analytics_space" -> "src.visuals.windows.spaces.templater";
  "src.visuals.windows.main_window" -> "src.core.apis.riot";
  "src.visuals.windows.main_window" -> "src.core.config";
  "src.visuals.windows.main_window" -> "src.core.io.mariadb";
  "src.visuals.windows.main_window" -> "src.core.io.wrapper";
  "src.visuals.windows.main_window" -> "src.core.process.reading";
  "src.visuals.windows.main_window" -> "src.visuals.windows.analytics_space";
  "src.visuals.windows.main_window" -> "src.visuals.windows.maria_dialog";
  "src.visuals.windows.main_window" -> "src.visuals.windows.sample_dialog";
  "src.visuals.windows.main_window" -> "src.visuals.windows.settings";
  "src.visuals.windows.maria_dialog" -> "src.core.config";
  "src.visuals.windows.maria_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.profile_dialog" -> "src.core.config";
  "src.visuals.windows.profile_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.sample_dialog" -> "src.core.apis.riot";
  "src.visuals.windows.sample_dialog" -> "src.core.config";
  "src.visuals.windows.sample_dialog" -> "src.core.io.mariadb";
  "src.visuals.windows.settings" -> "src.core.config";
  "src.visuals.windows.settings" -> "src.core.io.mariadb";
  "src.visuals.windows.settings" -> "src.core.process.manager";
  "src.visuals.windows.settings" -> "src.visuals.windows.profile_dialog";
  "src.visuals.windows.spaces.templater" -> "src.core.config";
  "src.visuals.windows.spaces.templater" -> "src.core.io.wrapper";
}

Import dependencies (collapsed)