onix.collection.sinks module

Interfaces for storing data

class onix.collection.sinks.MovesetSink[source]

Bases: onix.collection.sinks._Sink

Sink for storing movesets

store_movesets(movesets)[source]

Store the provided movesets.

Parameters:movesets (dict of str to onix.dto.Moveset) – A map where the values are the movesets to store and the keys their corresponding set IDs.
Returns:None
class onix.collection.sinks.BattleInfoSink[source]

Bases: onix.collection.sinks._Sink

Sink for storing battle metadata

store_battle_info(battle_info)[source]

Store the provided battle info.

Parameters:battle_info (onix.model.BattleInfo) – The battle metadata to store
Returns:None
class onix.collection.sinks.BattleSink[source]

Bases: onix.collection.sinks._Sink

Sink for storing the turn-by-turn battle logs

store_battle(battle)[source]

Store the provided battle.

Parameters:battle (onix.battle.Battle) – The battle to store
Returns:None