src.core.process.pipelines.client module

Client pipeline.

class src.core.process.pipelines.client.ClientKeys(*values)[source]

Bases: Enum

current paths to data, for pandas json_normalize

META

the metadata is located in the root of the json, therefore there is nothing to pass

Type:

None

PLAYER_1

root path for playerdata, therefore no agg needed

Type:

str

PLAYER_2

the root path for playerdata meta stats, so no agg

Type:

str

TEAM_1

the root path for teamdata, so no agg

Type:

str

TEAM_2

the path for bans in playerdata.

Type:

list[str]

META: None = None
PLAYER_1: str = 'participants'
PLAYER_2: str = 'participantIdentities'
TEAM_1: str = 'teams'
TEAM_2: list[str] = ['teams', 'bans']
src.core.process.pipelines.client.needsAggClient: dict[ClientKeys, list[str]] = {ClientKeys.TEAM_2: ['teams', 'teamId']}

The tables produced by this keys, need further aggregation into the right table format.

MatchV5Keys.TEAM_2: -> [“info”, “teams”,”teamId”]

src.core.process.pipelines.client.needsMetaDataClient: dict[ClientKeys, list[str]] = {ClientKeys.PLAYER_1: 'gameId', ClientKeys.TEAM_1: 'gameId'}

the tables produced by these keys, need metadata, to be assignable

ClientKeys.PLAYER_1 -> “gameId” ClientKeys.TEAM_1 -> “gameId”

src.core.process.pipelines.client.subTestSet: set[str] = {'championId_0', 'championId_1', 'championId_2', 'championId_3', 'championId_4'}

a set of names to test if contained in the resulting table

src.core.process.pipelines.client.tableTypeForClient: dict[ClientKeys, str] = {ClientKeys.META: GameTable.META, ClientKeys.PLAYER_1: GameTable.PLAYER, ClientKeys.PLAYER_2: GameTable.PLAYER, ClientKeys.TEAM_1: GameTable.TEAM, ClientKeys.TEAM_2: GameTable.TEAM}

classification of each resulting table

ClientKeys.META -> GameTable.META, ClientKeys.PLAYER_1 -> GameTable.PLAYER, ClientKeys.PLAYER_2 -> GameTable.PLAYER, ClientKeys.TEAM_1 -> GameTable.TEAM, ClientKeys.TEAM_2 -> GameTable.TEAM,

Dependency Diagrams (without externals):

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.extract" -> "src.core.process.pipelines.client";
  "src.visuals.windows.settings" -> "src.core.process.pipelines.client";
}

Import dependencies (collapsed)

Dependency Diagrams:

digraph imports {
  rankdir=LR;
  node [shape=box];
  "src.core.process.extract" -> "src.core.process.pipelines.client";
  "src.visuals.windows.settings" -> "src.core.process.pipelines.client";
}

Import dependencies (collapsed)