rephorm 1.1.3__tar.gz → 1.1.4__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.
- {rephorm-1.1.3/src/rephorm.egg-info → rephorm-1.1.4}/PKG-INFO +4 -7
- {rephorm-1.1.3 → rephorm-1.1.4}/pyproject.toml +5 -7
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/__init__.py +1 -1
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/chart.py +2 -2
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/chart_series.py +5 -5
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/table.py +2 -2
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/table_section.py +1 -1
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/table_series.py +2 -2
- {rephorm-1.1.3 → rephorm-1.1.4/src/rephorm.egg-info}/PKG-INFO +4 -7
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm.egg-info/SOURCES.txt +1 -2
- rephorm-1.1.4/src/rephorm.egg-info/requires.txt +11 -0
- rephorm-1.1.3/src/rephorm.egg-info/requires.txt +0 -13
- rephorm-1.1.3/tests/testing1.py +0 -27
- {rephorm-1.1.3 → rephorm-1.1.4}/LICENSE +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/README.md +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/setup.cfg +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/decorators/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/decorators/settings_validation.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/colors.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/legend_positions.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/styles.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/update_layout.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/dict/update_traces.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_globals.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/chart_mapper_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/grid_mapper_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/table_mapper_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/chapter_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/chart_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/chart_series_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/grid_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/page_break_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/report_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/table_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/table_section_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/table_series_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/text_mapper.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_params/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_params/settings.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/_utilities/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/_utilities/settings_container.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/chapter.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/footnote.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/grid.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/page_break.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/report.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/objects/text.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/PDF.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/add_style_prefix.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/OpenSans-Bold.ttf +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/OpenSans-BoldItalic.ttf +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/OpenSans-Italic.ttf +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/OpenSans.ttf +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/fonts/font_loading.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/is_set.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/merge/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/merge/chart_properties_manager.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/merge/merge_settings.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/merge/merge_styles.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/merge/pdf_merger.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/__init__.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/add_footnotes.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/cleanup_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/footnotes_counter.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/image_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/layout_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/range_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/report_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/resolve_color.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/table_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/report/title_utility.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/utility/unit_converter.py +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm.egg-info/dependency_links.txt +0 -0
- {rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rephorm
|
|
3
|
-
Version: 1.1.
|
|
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>
|
|
@@ -36,12 +36,9 @@ Requires-Dist: fpdf2==2.8.4
|
|
|
36
36
|
Requires-Dist: PyMuPDF==1.25.1
|
|
37
37
|
Requires-Dist: twine==6.1.0
|
|
38
38
|
Requires-Dist: pkginfo==1.12.1.2
|
|
39
|
-
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
|
|
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"
|
|
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"
|
|
45
42
|
Dynamic: license-file
|
|
46
43
|
|
|
47
44
|
Rephorm is a Python package for generating PDF reports through code. It builds on the capabilities of fpdf2 for PDF
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[bumpver]
|
|
2
|
-
current_version = "1.1.
|
|
2
|
+
current_version = "1.1.4"
|
|
3
3
|
version_pattern = "MAJOR.MINOR.PATCH[.TAGNUM]"
|
|
4
4
|
tag_regex = "^{version}$"
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ build-backend = "setuptools.build_meta"
|
|
|
17
17
|
|
|
18
18
|
[project]
|
|
19
19
|
name = "rephorm"
|
|
20
|
-
version = "1.1.
|
|
20
|
+
version = "1.1.4"
|
|
21
21
|
description = "Python package for generating PDF reports through code"
|
|
22
22
|
authors = [
|
|
23
23
|
{ name = "OGResearch", email = "it@ogresearch.com" }
|
|
@@ -34,6 +34,9 @@ dependencies = [
|
|
|
34
34
|
"PyMuPDF == 1.25.1",
|
|
35
35
|
"twine == 6.1.0",
|
|
36
36
|
"pkginfo == 1.12.1.2",
|
|
37
|
+
"datapie >= 0.4.0",
|
|
38
|
+
'kaleido == 1.1.0; platform_system == "Windows"',
|
|
39
|
+
'kaleido == 1.0.0; platform_system != "Windows"'
|
|
37
40
|
]
|
|
38
41
|
|
|
39
42
|
classifiers = [
|
|
@@ -54,8 +57,3 @@ where = ["src"]
|
|
|
54
57
|
|
|
55
58
|
[tool.setuptools.dynamic]
|
|
56
59
|
version = { attr = "rephorm.__version__" }
|
|
57
|
-
|
|
58
|
-
[project.optional-dependencies]
|
|
59
|
-
irispie-pe = ["irispie-pe >= 0.77.1"]
|
|
60
|
-
irispie-ce = ["irispie-ce >= 0.77.1"]
|
|
61
|
-
irpie-re = ["irispie-re >= 0.77.1"]
|
|
@@ -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.4"
|
|
15
15
|
__author__ = 'OGResearch team'
|
|
16
16
|
__credits__ = 'OGResearch'
|
|
17
17
|
__license__ = 'Copyright 2025 OGResearch, all rights reserved'
|
|
@@ -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 (
|
|
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 (
|
|
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 datapie import Series as
|
|
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:
|
|
12
|
+
def __init__( self, data: DataPieSeries = None, **kwargs):
|
|
13
13
|
"""
|
|
14
|
-
:param data (
|
|
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 (
|
|
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 (
|
|
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),
|
|
@@ -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 (
|
|
23
|
-
:key 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 (
|
|
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
|
|
@@ -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 (
|
|
19
|
-
:key highlight (
|
|
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,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rephorm
|
|
3
|
-
Version: 1.1.
|
|
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>
|
|
@@ -36,12 +36,9 @@ Requires-Dist: fpdf2==2.8.4
|
|
|
36
36
|
Requires-Dist: PyMuPDF==1.25.1
|
|
37
37
|
Requires-Dist: twine==6.1.0
|
|
38
38
|
Requires-Dist: pkginfo==1.12.1.2
|
|
39
|
-
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
|
|
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"
|
|
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"
|
|
45
42
|
Dynamic: license-file
|
|
46
43
|
|
|
47
44
|
Rephorm is a Python package for generating PDF reports through code. It builds on the capabilities of fpdf2 for PDF
|
|
@@ -73,5 +73,4 @@ src/rephorm/utility/report/range_utility.py
|
|
|
73
73
|
src/rephorm/utility/report/report_utility.py
|
|
74
74
|
src/rephorm/utility/report/resolve_color.py
|
|
75
75
|
src/rephorm/utility/report/table_utility.py
|
|
76
|
-
src/rephorm/utility/report/title_utility.py
|
|
77
|
-
tests/testing1.py
|
|
76
|
+
src/rephorm/utility/report/title_utility.py
|
rephorm-1.1.3/tests/testing1.py
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import irispie as ir
|
|
2
|
-
import numpy as np
|
|
3
|
-
|
|
4
|
-
def main():
|
|
5
|
-
out = ir.Series(periods=ir.qq(2023, 1) >> ir.qq(2025, 4), values=np.random.normal(0, 10, 12)).plot(return_info=True, show_figure=False,)
|
|
6
|
-
out["figure"].update_layout(
|
|
7
|
-
{"title": {
|
|
8
|
-
"text": "Hello world",
|
|
9
|
-
},
|
|
10
|
-
"xaxis": {
|
|
11
|
-
"ticks": "inside",
|
|
12
|
-
"tickcolor": "black",
|
|
13
|
-
"linewidth": 1,
|
|
14
|
-
"tickwidth": 1,
|
|
15
|
-
"tickmode": "sync",
|
|
16
|
-
"showline": True,
|
|
17
|
-
"ticklabel": "Period",
|
|
18
|
-
"linecolor": "black"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
out["figure"].show()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if __name__ == "__main__":
|
|
27
|
-
main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/chart_mapper_utility.py
RENAMED
|
File without changes
|
{rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/grid_mapper_utility.py
RENAMED
|
File without changes
|
{rephorm-1.1.3 → rephorm-1.1.4}/src/rephorm/object_mappers/_utilities/table_mapper_utility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|