rephorm 1.1.1__py3-none-any.whl → 1.1.3__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 +1 -1
- rephorm/object_mappers/chart_mapper.py +2 -2
- rephorm/object_params/settings.py +4 -5
- rephorm/objects/chart_series.py +1 -1
- rephorm/objects/table_series.py +1 -1
- rephorm/utility/report/table_utility.py +5 -5
- {rephorm-1.1.1.dist-info → rephorm-1.1.3.dist-info}/METADATA +8 -6
- {rephorm-1.1.1.dist-info → rephorm-1.1.3.dist-info}/RECORD +11 -11
- {rephorm-1.1.1.dist-info → rephorm-1.1.3.dist-info}/WHEEL +1 -1
- {rephorm-1.1.1.dist-info → rephorm-1.1.3.dist-info}/licenses/LICENSE +0 -0
- {rephorm-1.1.1.dist-info → rephorm-1.1.3.dist-info}/top_level.txt +0 -0
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.
|
|
14
|
+
__version__ = "1.1.3"
|
|
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
|
|
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
|
-
|
|
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
|
|
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":
|
|
17
|
-
"type":
|
|
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":
|
|
21
|
+
"type": dp.Span,
|
|
23
22
|
"ultimates": ["Chart", "Table", "TableSection", "TableSeries"],
|
|
24
23
|
},
|
|
25
24
|
"show_legend" : {
|
rephorm/objects/chart_series.py
CHANGED
rephorm/objects/table_series.py
CHANGED
|
@@ -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:
|
|
24
|
-
span:
|
|
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 =
|
|
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,
|
|
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.
|
|
3
|
+
Version: 1.1.3
|
|
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,14 +32,16 @@ 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:
|
|
36
|
-
Requires-Dist: irispie==0.61.0
|
|
37
|
-
Requires-Dist: fpdf2==2.7.9
|
|
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
|
-
|
|
42
|
-
Requires-Dist:
|
|
39
|
+
Provides-Extra: irispie-pe
|
|
40
|
+
Requires-Dist: irispie-pe>=0.77.1; extra == "irispie-pe"
|
|
41
|
+
Provides-Extra: irispie-ce
|
|
42
|
+
Requires-Dist: irispie-ce>=0.77.1; extra == "irispie-ce"
|
|
43
|
+
Provides-Extra: irpie-re
|
|
44
|
+
Requires-Dist: irispie-re>=0.77.1; extra == "irpie-re"
|
|
43
45
|
Dynamic: license-file
|
|
44
46
|
|
|
45
47
|
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=
|
|
1
|
+
rephorm/__init__.py,sha256=IcYgWG6YSScsNt_Ce5FMktgQAWNivKSV8EFispc1BYw,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=
|
|
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=
|
|
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
30
|
rephorm/objects/chart.py,sha256=kOuZW-_QaIwhlaYq5R9UItDGWM594wSwNhc5TxYgJts,3466
|
|
31
|
-
rephorm/objects/chart_series.py,sha256=
|
|
31
|
+
rephorm/objects/chart_series.py,sha256=XQhOLyC_JlTtWNEywXiuRhARDEkrMVSt0Z-6HcbFZ_M,2139
|
|
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
36
|
rephorm/objects/table.py,sha256=uIv7BQOwt0KgsWuBPH0Ch_z521_Ory8SvAT8o6EJ4fE,3235
|
|
37
37
|
rephorm/objects/table_section.py,sha256=U5wIhTbxZOpubv2BqtO_Z_G9HSfQQLlwIAQVMe_00KI,2095
|
|
38
|
-
rephorm/objects/table_series.py,sha256=
|
|
38
|
+
rephorm/objects/table_series.py,sha256=YO5ucHPXGTAv4uIg_PKbrg56Qb0VId0a-0Az3ZzGKDI,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=
|
|
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.
|
|
70
|
-
rephorm-1.1.
|
|
71
|
-
rephorm-1.1.
|
|
72
|
-
rephorm-1.1.
|
|
73
|
-
rephorm-1.1.
|
|
69
|
+
rephorm-1.1.3.dist-info/licenses/LICENSE,sha256=J7qNT6dA5AkN4QCfd9uPlNftEs8jRiulHfO1ESxE3GU,1067
|
|
70
|
+
rephorm-1.1.3.dist-info/METADATA,sha256=XB57XUuMQYN3ObWcNQi5Jc6AxE2q-YdyHi76anF0q9c,2501
|
|
71
|
+
rephorm-1.1.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
72
|
+
rephorm-1.1.3.dist-info/top_level.txt,sha256=akVppyH53yfIlJ5BbtNzKZF4306s-1XJycsOZOhDbQ0,8
|
|
73
|
+
rephorm-1.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|