ogd.core.generators package
Subpackages
- ogd.core.generators.detectors package
- ogd.core.generators.extractors package
- ogd.core.generators.legacy package
Submodules
ogd.core.generators.Generator module
- class ogd.core.generators.Generator.Generator(params: GeneratorParameters)[source]
Bases:
ABC- static AvailableModes() List[ExtractionMode][source]
List of ExtractionMode supported by the Extractor
Base function to give a list of which ExtractionModes an extractor will handle. :return: _description_ :rtype: List[ExtractionMode]
- static MaxVersion() str | None[source]
- Base function to get the maximum log version the feature can handle.
A value of None will set no maximum, so all levels are accepted (unless a min is set). Typically default to None, unless the feature is not compatible with new data and is only kept for legacy purposes. The versions of data accepted by a feature are a responsibility of the Feature’s developer, so this is a required part of interface instead of a config item in the schema.
- Returns:
[description]
- Return type:
Optional[str]
- static MinVersion() str | None[source]
- Base function to get the minimum log version the feature can handle.
A value of None will set no minimum, so all levels are accepted (unless a max is set). Typically default to None, unless there is a required element of the event data that was not added until a certain version. The versions of data accepted by a feature are a responsibility of the Feature’s developer, so this is a required part of interface instead of a config item in the schema.
- Returns:
[description]
- Return type:
Optional[str]
- class ogd.core.generators.Generator.GeneratorParameters(name: str, description: str, mode: ExtractionMode, count_index: int | None)[source]
Bases:
objectDumb struct to hold the data that should be available to every Generator. This just makes it easier to add/manage any new params, so that we don’t need to change the param list for hundreds of individual extractor subclasses every time something changes.
ogd.core.generators.GeneratorLoader module
- class ogd.core.generators.GeneratorLoader.GeneratorLoader(player_id: str, session_id: str, game_schema: GameSchema, mode: ExtractionMode, feature_overrides: List[str] | None)[source]
Bases:
ABC- GetBuiltinFeatureClass(feature_type: str) Type[BuiltinExtractor] | None[source]