openbb-charting 2.2.5__tar.gz → 2.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/PKG-INFO +7 -10
  2. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charting.py +1 -1
  3. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/helpers.py +2 -0
  4. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/relative_rotation.py +5 -3
  5. openbb_charting-2.3.1/openbb_charting/core/assets/plotly-3.0.0.min.js +3879 -0
  6. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/backend.py +3 -3
  7. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/openbb_figure.py +3 -5
  8. openbb_charting-2.3.1/openbb_charting/core/plotly.html +4033 -0
  9. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/ta_class.py +1 -2
  10. openbb_charting-2.3.1/openbb_charting/core/table.html +173 -0
  11. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/styles/default/dark.pltstyle.json +20 -1
  12. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/styles/default/light.pltstyle.json +21 -1
  13. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/pyproject.toml +6 -9
  14. openbb_charting-2.2.5/openbb_charting/core/assets/plotly-2.32.0.min.js +0 -8
  15. openbb_charting-2.2.5/openbb_charting/core/plotly.html +0 -3621
  16. openbb_charting-2.2.5/openbb_charting/core/table.html +0 -166
  17. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/README.md +0 -0
  18. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/__init__.py +0 -0
  19. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/__init__.py +0 -0
  20. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/correlation_matrix.py +0 -0
  21. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/generic_charts.py +0 -0
  22. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/price_historical.py +0 -0
  23. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/charts/price_performance.py +0 -0
  24. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/__init__.py +0 -0
  25. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/assets/Terminal_icon.png +0 -0
  26. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/chart_style.py +0 -0
  27. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/config/__init__.py +0 -0
  28. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/config/openbb_styles.py +0 -0
  29. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/dummy_backend.py +0 -0
  30. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/__init__.py +0 -0
  31. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/base.py +0 -0
  32. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/data_classes.py +0 -0
  33. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/__init__.py +0 -0
  34. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/custom_indicators_plugin.py +0 -0
  35. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/momentum_plugin.py +0 -0
  36. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/overlap_plugin.py +0 -0
  37. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/trend_indicators_plugin.py +0 -0
  38. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/volatility_plugin.py +0 -0
  39. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/plugins/volume_plugin.py +0 -0
  40. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/plotly_ta/ta_helpers.py +0 -0
  41. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/core/to_chart.py +0 -0
  42. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/query_params.py +0 -0
  43. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/styles/__init__.py +0 -0
  44. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/styles/colors.py +0 -0
  45. {openbb_charting-2.2.5 → openbb_charting-2.3.1}/openbb_charting/styles/default/tables.pltstyle.json +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: openbb-charting
3
- Version: 2.2.5
3
+ Version: 2.3.1
4
4
  Summary: Charting extension for OpenBB
5
5
  License: AGPL-3.0-only
6
6
  Author: OpenBB Team
@@ -13,14 +13,11 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Provides-Extra: pywry
16
- Requires-Dist: nbformat (>=5.9.2,<6.0.0)
17
- Requires-Dist: numpy (>=1,<2)
18
- Requires-Dist: openbb-core (>=1.3.6,<2.0.0)
19
- Requires-Dist: pandas-ta (>=0.3.14b,<0.4.0)
20
- Requires-Dist: plotly (>=5.17.0,<6.0.0)
21
- Requires-Dist: pywry (>=0.6.1,<0.7.0) ; extra == "pywry"
22
- Requires-Dist: scipy (>=1.10.0,<2.0.0)
23
- Requires-Dist: statsmodels (>=0.14.0,<0.15.0)
16
+ Requires-Dist: nbformat (>=5.10.0,<6.0.0)
17
+ Requires-Dist: openbb-core (>=1.4.0,<2.0.0)
18
+ Requires-Dist: pandas-ta-openbb (>=0.4.20,<0.5.0)
19
+ Requires-Dist: plotly (>=6.0.0,<7.0.0)
20
+ Requires-Dist: pywry (>=0.6.2,<0.7.0) ; extra == "pywry"
24
21
  Description-Content-Type: text/markdown
25
22
 
26
23
  # OpenBB Charting extension
@@ -425,7 +425,7 @@ class Charting:
425
425
  self._obbject._route # pylint: disable=protected-access
426
426
  )
427
427
  kwargs["obbject_item"] = self._obbject.results
428
- kwargs["charting_settings"] = self._charting_settings #
428
+ kwargs["charting_settings"] = self._charting_settings
429
429
  kwargs["standard_params"] = (
430
430
  self._obbject._standard_params # pylint: disable=protected-access
431
431
  )
@@ -1,5 +1,7 @@
1
1
  """Helper functions for charting."""
2
2
 
3
+ # pylint: disable=R0917
4
+
3
5
  from typing import TYPE_CHECKING, Callable, Dict, List, Type
4
6
 
5
7
  if TYPE_CHECKING:
@@ -1,5 +1,7 @@
1
1
  """Relative Rotation Chart Helpers."""
2
2
 
3
+ # pylint: disable=R0917
4
+
3
5
  from datetime import date as dateType
4
6
  from typing import TYPE_CHECKING, Literal, Optional
5
7
  from warnings import warn
@@ -109,9 +111,9 @@ def create_rrg_with_tails(
109
111
  symbols = ratios_data.columns.to_list()
110
112
 
111
113
  tail_dict = {"week": "W", "month": "M"}
112
-
113
114
  ratios_data.index = to_datetime(ratios_data.index)
114
115
  momentum_data.index = to_datetime(momentum_data.index)
116
+
115
117
  if tail_interval != "day":
116
118
  ratios_data = ratios_data.resample(tail_dict[tail_interval]).last()
117
119
  momentum_data = momentum_data.resample(tail_dict[tail_interval]).last()
@@ -136,8 +138,8 @@ def create_rrg_with_tails(
136
138
  name = symbol.upper().replace("^", "").replace(":US", "")
137
139
  # Create a trace for the line
138
140
  line_trace = go.Scattergl(
139
- x=x_data[:-1], # All but the last data point
140
- y=y_data[:-1], # All but the last data point
141
+ x=x_data.iloc[:-1], # All but the last data point
142
+ y=y_data.iloc[:-1], # All but the last data point
141
143
  mode="lines+markers",
142
144
  line=dict(
143
145
  color=color_sequence[i % len(color_sequence)], width=2, dash="dash"