1
0
Fork 0
mirror of synced 2024-07-01 04:30:20 +12:00
Rare/rare/shared.py
2021-10-07 20:19:24 +02:00

32 lines
583 B
Python

from argparse import Namespace
from legendary.core import LegendaryCore
from rare.utils.models import Signals, ApiResults
legendary_core: LegendaryCore = None
signals: Signals = None
args: Namespace = None
api_results: ApiResults = None
def init_legendary():
global legendary_core
legendary_core = LegendaryCore()
return legendary_core
def init_signals():
global signals
signals = Signals()
return signals
def init_args(a: Namespace):
global args
args = a
def init_api_response(res: ApiResults):
global api_results
api_results = res