Source code for finalynx.analyzer.analyzer

"""
```{tip}
TODO Dummy class for now, check back later or help us by contributing!
```
"""
from typing import Any
from typing import Dict

from ..portfolio import Node


[docs]class Analyzer: """ Main class for generating modular graphs and statistics about your portfolio. This module has not started development yet. Check back soon! """ CHART_COLORS = [ "#7cb5ec", "#434348", "#90ed7d", "#f7a35c", "#8085e9", "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1", ] def __init__(self, node: Node): self.node = node
[docs] def analyze(self) -> Any: """Abstract method, must be overridden by subclasses to return the analysis result.""" raise NotImplementedError("Method must be overridden by a subclass.")
[docs] def chart(self) -> Dict[Any, Any]: """Abstract method, must be overridden by subclasses to return a Highcharts configuration (will be shown in the web dashboard).""" raise NotImplementedError("Method must be overridden by a subclass.")