rephorm 1.1.2__py3-none-any.whl → 1.1.4__py3-none-any.whl

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.
rephorm/__init__.py CHANGED
@@ -11,7 +11,7 @@ from rephorm.objects.footnote import Footnote
11
11
  from rephorm.objects.chart_series import ChartSeries
12
12
  from rephorm.objects.table_series import TableSeries
13
13
 
14
- __version__ = "1.1.2"
14
+ __version__ = "1.1.4"
15
15
  __author__ = 'OGResearch team'
16
16
  __credits__ = 'OGResearch'
17
17
  __license__ = 'Copyright 2025 OGResearch, all rights reserved'
@@ -1,6 +1,6 @@
1
1
  import os
2
2
 
3
- import irispie
3
+ import datapie
4
4
  import numpy as np
5
5
  from plotly.graph_objects import Figure
6
6
 
@@ -109,7 +109,7 @@ class ChartMapper:
109
109
  # span.end.to_python_date(position="end")]
110
110
 
111
111
  if self.chart.settings.highlight is not None:
112
- irispie.ez_plotly.highlight(self.figure, self.chart._get_highlight(),
112
+ datapie.ez_plotly.highlight(self.figure, self.chart._get_highlight(),
113
113
  color=resolve_highlight_color(
114
114
  self.chart.settings.styles["chart"]["highlight_color"], alpha=0.25))
115
115
 
@@ -1,6 +1,5 @@
1
1
  from typing import Dict
2
- import irispie as ir
3
-
2
+ import datapie as dp
4
3
  from rephorm.dict.styles import default_styles
5
4
 
6
5
  """
@@ -13,13 +12,13 @@ from rephorm.dict.styles import default_styles
13
12
 
14
13
  object_params = {
15
14
  "span": {
16
- "default_value": ir.start >> ir.end,
17
- "type": ir.Span,
15
+ "default_value": dp.start >> dp.end,
16
+ "type": dp.Span,
18
17
  "ultimates": ["Chart", "Table", "ChartSeries", "TableSeries"],
19
18
  },
20
19
  "highlight" : {
21
20
  "default_value": None,
22
- "type": ir.Span,
21
+ "type": dp.Span,
23
22
  "ultimates": ["Chart", "Table", "TableSection", "TableSeries"],
24
23
  },
25
24
  "show_legend" : {
rephorm/objects/chart.py CHANGED
@@ -15,9 +15,9 @@ class Chart:
15
15
  """
16
16
  :args title (str): title of the chart
17
17
  :args figure (plotly.graph_objs.Figure): Plotly figure object. If provided, it will plot the given figure object.
18
- :args span (ir.Span): Span of the chart
18
+ :args span (dp.Span): Span of the chart
19
19
  :key apply_report_layout (bool): If True, applies the standard report layout to the provided figure (can only be used for a custom Plotly figure).
20
- :key highlight (ir.Span): Span of the highlight.
20
+ :key highlight (dp.Span): Span of the highlight.
21
21
  :key show_legend (bool): to show/hide the legend.
22
22
  :key show_grid (bool): to show/hide the grid.
23
23
  :key axis_border (bool): enable/disable axis borders.
@@ -1,4 +1,4 @@
1
- from irispie import Series as IrisSeries
1
+ from datapie import Series as DataPieSeries
2
2
 
3
3
  from rephorm.object_mappers.chart_series_mapper import ChartSeriesMapper
4
4
  from rephorm.objects._utilities.settings_container import SettingsContainer
@@ -9,15 +9,15 @@ from rephorm.utility.add_style_prefix import add_prefix_to_styles
9
9
  class ChartSeries:
10
10
 
11
11
  @validate_kwargs
12
- def __init__( self, data: IrisSeries = None, **kwargs):
12
+ def __init__( self, data: DataPieSeries = None, **kwargs):
13
13
  """
14
- :param data (IrisSeries, Required): Data for the chart series.
14
+ :param data (DataPieSeries, Required): Data for the chart series.
15
15
  :key yaxis (str, Optional): Y-axis position for the chart series. Defaults to "left".
16
- :key span (ir.Span): Span of the chart series.
16
+ :key span (dp.Span): Span of the chart series.
17
17
  :key show_legend (bool): to show/hide the legend for this data series.
18
18
  :key legend (tuple): Specifies the legend labels for the series. For a single series, use ("Label",).
19
19
  For multivariate series, provide multiple labels like ("Label 1", "Label 2", ...).
20
- :key highlight (ir.Span): Span of the highlight.
20
+ :key highlight (dp.Span): Span of the highlight.
21
21
  :key series_type (str): Type of series to display - "line" for line charts, "bar" for bar charts,
22
22
  "bar_contribution" for contribution bar charts; use "line" with markers_mode="markers" for marker-based charts.
23
23
  :key markers_mode (str): Display style for data points - "lines+markers" (lines with symbols/dots),
rephorm/objects/table.py CHANGED
@@ -19,8 +19,8 @@ class Table:
19
19
  :param title: Title of the table.
20
20
  :param footnotes: Footnotes for the title.
21
21
  :param width (int): The maximum width allowed for rendering the table.
22
- :key span (ir.Span, Required): Span of the table.
23
- :key highlight (ir.Span): Span of the highlight.
22
+ :key span (dp.Span, Required): Span of the table.
23
+ :key highlight (dp.Span): Span of the highlight.
24
24
  :key show_units (bool): Display/hide units in the table.
25
25
  :key frequency (str): Frequency of the data in the table.
26
26
  :key decimal_precision (int): Sets number of decimal places after the decimal point.
@@ -14,7 +14,7 @@ class TableSection:
14
14
  """
15
15
  :param title: (str) Title of the table section.
16
16
  :key styles (Dict): Styles dictionary for the table section (refer to documentation).
17
- :key highlight (ir.Span): Span of the highlight in the table section. (applies to all table_series added within the section)
17
+ :key highlight (dp.Span): Span of the highlight in the table section. (applies to all table_series added within the section)
18
18
  :key show_units (bool): To show/hide units for the table section. (applies to all table_series added within the section)
19
19
  """
20
20
  self.TITLE = title
@@ -1,4 +1,4 @@
1
- from irispie import Series as IrisSeries
1
+ from datapie import Series as IrisSeries
2
2
 
3
3
  from rephorm.object_mappers.table_series_mapper import TableSeriesMapper
4
4
  from rephorm.objects._utilities.settings_container import SettingsContainer
@@ -15,8 +15,8 @@ class TableSeries:
15
15
  :param title: (str) Name of the table series / row.
16
16
  :param unit: (str) The text value for the "units" column in this specific row of the table series.
17
17
  This defines what will be displayed as the unit for the corresponding row.
18
- :key span (ir.Span): Span of the table series.
19
- :key highlight (ir.Span): Span of the highlight in the table series.
18
+ :key span (dp.Span): Span of the table series.
19
+ :key highlight (dp.Span): Span of the highlight in the table series.
20
20
  :key compare_style (str): Comparison style for the table series. "diff", "pct".
21
21
  :key decimal_precision (int): Sets number of decimal places after the decimal point.
22
22
  :key comparison_series (bool): Whether the series should be displayed as comparison series.
@@ -1,5 +1,5 @@
1
- import irispie as ir
2
1
  import re
2
+ import datapie as dp
3
3
 
4
4
  from rephorm.utility.report.range_utility import get_highlight, get_span
5
5
 
@@ -20,8 +20,8 @@ def get_table_highlight(table):
20
20
  return cols
21
21
 
22
22
  def prepare_row(
23
- series: ir.Series = None,
24
- span: ir.Span = None,
23
+ series: dp.Series = None,
24
+ span: dp.Span = None,
25
25
  title: str = "",
26
26
  unit: str = "",
27
27
  show_units: bool = None,
@@ -30,13 +30,13 @@ def prepare_row(
30
30
  footnote_references = None,
31
31
  ):
32
32
  if series is None:
33
- series_data = ir.Series()
33
+ series_data = dp.Series()
34
34
  decimal_precision = 0
35
35
 
36
36
  else:
37
37
  series_data = series
38
38
 
39
- if isinstance(series_data, ir.Series):
39
+ if isinstance(series_data, dp.Series):
40
40
  series_data = series_data[span].flatten().tolist()
41
41
  #if isinstance(series_data, TableSeries):
42
42
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rephorm
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Python package for generating PDF reports through code
5
5
  Author-email: OGResearch <it@ogresearch.com>
6
6
  Maintainer-email: Sergey Plotnikov <sergey.plotnikov@ogresearch.com>, Martynas Vycas <martynas.vycas@ogresearch.com>
@@ -32,13 +32,13 @@ Classifier: Operating System :: OS Independent
32
32
  Requires-Python: >=3.12
33
33
  Description-Content-Type: text/markdown
34
34
  License-File: LICENSE
35
- Requires-Dist: plotly==6.3.1
36
- Requires-Dist: irispie>=0.68.1
37
35
  Requires-Dist: fpdf2==2.8.4
38
36
  Requires-Dist: PyMuPDF==1.25.1
39
37
  Requires-Dist: twine==6.1.0
40
38
  Requires-Dist: pkginfo==1.12.1.2
41
- Requires-Dist: kaleido==1.1.0
39
+ Requires-Dist: datapie>=0.4.0
40
+ Requires-Dist: kaleido==1.1.0; platform_system == "Windows"
41
+ Requires-Dist: kaleido==1.0.0; platform_system != "Windows"
42
42
  Dynamic: license-file
43
43
 
44
44
  Rephorm is a Python package for generating PDF reports through code. It builds on the capabilities of fpdf2 for PDF
@@ -1,4 +1,4 @@
1
- rephorm/__init__.py,sha256=W75jh4QA9yOAN8wf1jUGNCmVXB-wffaGlF1IMNHv2R8,661
1
+ rephorm/__init__.py,sha256=wV2yAJB_fZcD84xZfnD7WVg8JCJeF4lAcxvRWbDdwLM,661
2
2
  rephorm/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  rephorm/decorators/settings_validation.py,sha256=FEikLkxMgiPGzSTeF6dJmu4mBPAU8dvy-EFFWVj9KDY,1973
4
4
  rephorm/dict/__init__.py,sha256=M0NZuQ7-112l8K2h1eayVvSmvQrufrOcD5AYKgIf_Is,1
@@ -10,7 +10,7 @@ rephorm/dict/update_traces.py,sha256=VFbBoIjLV5qba3MrHgiDFeKslFADRploLZytx4lDjrs
10
10
  rephorm/object_mappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  rephorm/object_mappers/_globals.py,sha256=FnyT7yPXjUpt5A_18l8WFAguaihAdwvay_0Sg0Gm4sA,285
12
12
  rephorm/object_mappers/chapter_mapper.py,sha256=yPaa4GUkVlA1obPQ3jsRpO774Y8j7Vh6cbKQ-x9O3Ig,4007
13
- rephorm/object_mappers/chart_mapper.py,sha256=BjRF847cJQfRCgx41rXd7WZxyMEDM-YwnHm5RTD7f80,4729
13
+ rephorm/object_mappers/chart_mapper.py,sha256=WD36AUqKN3Rm1A4MZUEj1KZm65923LUjEn6Z5B60i_I,4729
14
14
  rephorm/object_mappers/chart_series_mapper.py,sha256=bAO-rNSoczV0hDo_Vhsv8F9robtu2TQ6WwHiX90jyFA,1915
15
15
  rephorm/object_mappers/grid_mapper.py,sha256=gbuZF-vS9SAZyGLC0hfGV9snGPs8LKS7ZiY0wwtdKNQ,4650
16
16
  rephorm/object_mappers/page_break_mapper.py,sha256=3db07DBaFgwMcizexmHOJIBQWg2zEvNJZb4rcyGL_sw,185
@@ -24,18 +24,18 @@ rephorm/object_mappers/_utilities/chart_mapper_utility.py,sha256=UAywPZ-UTgUX-8L
24
24
  rephorm/object_mappers/_utilities/grid_mapper_utility.py,sha256=1SeQOPQHqkgOvB9Bl-Qm6dkwmpcLLuCRrfb_WLtL4rI,323
25
25
  rephorm/object_mappers/_utilities/table_mapper_utility.py,sha256=rVez9ldfufxEdKAzWuqVd3v8OXaBGM1Vo8kfJQW0ymc,2596
26
26
  rephorm/object_params/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- rephorm/object_params/settings.py,sha256=_NG5CpSpBg6IKCpF_64tBepdRRAcNMOuqXoQY1u_IqQ,4969
27
+ rephorm/object_params/settings.py,sha256=0RGd5fdMmJIN5Gqv2m-otLTFeBHbxSvkroKCaCKHTD0,4968
28
28
  rephorm/objects/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  rephorm/objects/chapter.py,sha256=kNjor9eP5j5vLeWQjWHiz2o0driofhlqP0BdPTIthvo,1772
30
- rephorm/objects/chart.py,sha256=kOuZW-_QaIwhlaYq5R9UItDGWM594wSwNhc5TxYgJts,3466
31
- rephorm/objects/chart_series.py,sha256=1HqbuXng8bKgcucEKNdU1ADgyaa8JQpt8i5dPdxkYzE,2139
30
+ rephorm/objects/chart.py,sha256=jxnpzheZKLkgCrfVqkOF3RSptKMcgky0gbe7kb1hA5M,3466
31
+ rephorm/objects/chart_series.py,sha256=YWia29MBA6fLoknMke7M_xYg9IT2lrEelxzRc5L8-JQ,2148
32
32
  rephorm/objects/footnote.py,sha256=YmCsdlkwnAXV1lvrt2k7ADhYenRvZEcecUxsya0s2JY,274
33
33
  rephorm/objects/grid.py,sha256=rJFAGJ6z23HcosTRb7MzyBsLPfXvayzLwO4tkWQ6KWE,2234
34
34
  rephorm/objects/page_break.py,sha256=vnt33zhvtZMnbjNNw3rB4cQ6YaaFF64XNdYM3wGTn5Y,257
35
35
  rephorm/objects/report.py,sha256=yOlLfEatJer830S9MSkxMNXix3X39kY4TcK4etMWxrQ,9505
36
- rephorm/objects/table.py,sha256=uIv7BQOwt0KgsWuBPH0Ch_z521_Ory8SvAT8o6EJ4fE,3235
37
- rephorm/objects/table_section.py,sha256=U5wIhTbxZOpubv2BqtO_Z_G9HSfQQLlwIAQVMe_00KI,2095
38
- rephorm/objects/table_series.py,sha256=CvUr89_w0Am-swqrU0HwyrhiF3q1LzKv-0BtNwAAUXU,1773
36
+ rephorm/objects/table.py,sha256=X6whlfI4h1rryH6Wi7NAFU0HoSCYtJMLsIzPA-ePD5Y,3235
37
+ rephorm/objects/table_section.py,sha256=XeRAm6M0QGyFhVi2PcbwuxSQ5MQOPyvltWUJIFA7T3Q,2095
38
+ rephorm/objects/table_series.py,sha256=0CaAc0vw7TS_G5bNHHCUtOgHKomJDQa8MVebtVn2MEY,1773
39
39
  rephorm/objects/text.py,sha256=9jczgU9-iXdNeE32V5e83axt8jk-QXdpm8b0FEOZR0g,847
40
40
  rephorm/objects/_utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  rephorm/objects/_utilities/settings_container.py,sha256=ymsZCDX_hSDvn_tXENpjcEjb0DjsWwyf6qb9NH_U8L0,223
@@ -64,10 +64,10 @@ rephorm/utility/report/layout_utility.py,sha256=qRf8Rq9MdnVot1lRTiUMkVBBVdC1_kzE
64
64
  rephorm/utility/report/range_utility.py,sha256=hKtfusxqR3JzQMBnUSCFvHKzBYQETgYRbOCVG7EpfXg,3090
65
65
  rephorm/utility/report/report_utility.py,sha256=oG5HmpnUY1uU64fWSV6Tbr5v1xRCKLTq0VVAL7sz7do,2956
66
66
  rephorm/utility/report/resolve_color.py,sha256=VMs3MHR8g1emzZZrB3nVetKHatNWq7_2PsZGHcAQOYQ,1220
67
- rephorm/utility/report/table_utility.py,sha256=mMEnR8doZ1I0xR3Jq_55ols7zDXdJ0GRf_u5NnkH9qE,1659
67
+ rephorm/utility/report/table_utility.py,sha256=kOm2fRaJ66j6R9a_HKjlJZE2jw14WnPNTg-a76_Vvms,1659
68
68
  rephorm/utility/report/title_utility.py,sha256=da2p6ad9nCm2RhUN09S9QxuE7H4sL3l5cA3llcDdVIo,1742
69
- rephorm-1.1.2.dist-info/licenses/LICENSE,sha256=J7qNT6dA5AkN4QCfd9uPlNftEs8jRiulHfO1ESxE3GU,1067
70
- rephorm-1.1.2.dist-info/METADATA,sha256=BycVnmumJiR2xWWsx5kn3wB5ziUon3u0uvu82dVPVH8,2343
71
- rephorm-1.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
72
- rephorm-1.1.2.dist-info/top_level.txt,sha256=akVppyH53yfIlJ5BbtNzKZF4306s-1XJycsOZOhDbQ0,8
73
- rephorm-1.1.2.dist-info/RECORD,,
69
+ rephorm-1.1.4.dist-info/licenses/LICENSE,sha256=J7qNT6dA5AkN4QCfd9uPlNftEs8jRiulHfO1ESxE3GU,1067
70
+ rephorm-1.1.4.dist-info/METADATA,sha256=1ELam0ewHXma-VcpEfSUcuQu2it85Gwg-YMoEzRgXXo,2403
71
+ rephorm-1.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
72
+ rephorm-1.1.4.dist-info/top_level.txt,sha256=akVppyH53yfIlJ5BbtNzKZF4306s-1XJycsOZOhDbQ0,8
73
+ rephorm-1.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5