rephorm 1.0.1__py3-none-any.whl → 1.0.2__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.0.1"
14
+ __version__ = "1.0.2"
15
15
  __author__ = 'OGResearch team'
16
16
  __credits__ = 'OGResearch'
17
17
  __license__ = 'Copyright 2025 OGResearch, all rights reserved'
rephorm/objects/grid.py CHANGED
@@ -1,10 +1,9 @@
1
1
  from __future__ import annotations
2
2
  import copy
3
- from typing import Text, Optional, Union, List
3
+ from typing import Optional, Union, List
4
4
 
5
5
  from rephorm.objects.table import Table
6
6
  from rephorm.objects.text import Text
7
- from rephorm.objects.page_break import PageBreak
8
7
  from rephorm.objects.chart import Chart
9
8
  from rephorm.object_mappers.grid_mapper import GridMapper
10
9
  from rephorm.objects._utilities.settings_container import SettingsContainer
@@ -33,13 +32,12 @@ class Grid:
33
32
 
34
33
  def add(
35
34
  self,
36
- grid_child : Union[Grid, Table, Text, PageBreak, Chart] = None,
35
+ grid_child : Union[Grid, Table, Text, Chart] = None,
37
36
  ):
38
-
39
37
  #12/10/2024: We should have checks in the objects and not object mappers
40
38
  # We would also not have problem with imports here, because this module itself is within OBJECTS
41
39
  # Todo: Update latest docs, explaining it is not possible to nest grids within grids, and the reason why.
42
- if grid_child is not None and isinstance(grid_child, (Table, Text, PageBreak, Chart)):
40
+ if grid_child is not None and isinstance(grid_child, (Table, Grid, Text, Chart)):
43
41
  # grid_child._on_add_callback()
44
42
  copy_grid_child = copy.deepcopy(grid_child)
45
43
  self.CHILDREN.append(copy_grid_child)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rephorm
3
- Version: 1.0.1
3
+ Version: 1.0.2
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>, Ngoc Nam Nguyen <nam.nguyen@ogresearch.com>, Martynas Vycas <martynas.vycas@ogresearch.com>
@@ -30,6 +30,7 @@ Classifier: Intended Audience :: Financial and Insurance Industry
30
30
  Classifier: Programming Language :: Python :: 3
31
31
  Classifier: Operating System :: OS Independent
32
32
  Requires-Python: >=3.12
33
+ Description-Content-Type: text/markdown
33
34
  License-File: LICENSE
34
35
  Requires-Dist: irispie>=0.61.0
35
36
  Requires-Dist: fpdf2>=2.7.9
@@ -39,3 +40,9 @@ Requires-Dist: pkginfo>=1.12.1.2
39
40
  Requires-Dist: kaleido==0.1.0post1; platform_system == "Windows"
40
41
  Requires-Dist: kaleido==0.2.1; platform_system != "Windows"
41
42
  Dynamic: license-file
43
+
44
+ Rephorm is a Python package for generating PDF reports through code. It builds on the capabilities of fpdf2 for PDF
45
+ rendering and IRISPIE for seamless integration of economic models and data.
46
+
47
+ Rephorm provides a modular framework of configurable objects that can be instantiated, customized, and composed to
48
+ create structured PDF reports.
@@ -1,4 +1,4 @@
1
- rephorm/__init__.py,sha256=Bk6Ri5wmhyKe6nihc4_qDgEgxw0dOz5PY4o4q1hBh7U,661
1
+ rephorm/__init__.py,sha256=Hxsg8z-Tdvclu7AVNGu7aRD_At0JonKnHgT5c6gEvCs,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
@@ -30,7 +30,7 @@ rephorm/objects/chapter.py,sha256=kNjor9eP5j5vLeWQjWHiz2o0driofhlqP0BdPTIthvo,17
30
30
  rephorm/objects/chart.py,sha256=kOuZW-_QaIwhlaYq5R9UItDGWM594wSwNhc5TxYgJts,3466
31
31
  rephorm/objects/chart_series.py,sha256=1HqbuXng8bKgcucEKNdU1ADgyaa8JQpt8i5dPdxkYzE,2139
32
32
  rephorm/objects/footnote.py,sha256=YmCsdlkwnAXV1lvrt2k7ADhYenRvZEcecUxsya0s2JY,274
33
- rephorm/objects/grid.py,sha256=OT1lenrXLQAkrFSBm_hDTPtPtvJA0IDlMvIOxXfaAZo,2306
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
@@ -66,8 +66,8 @@ rephorm/utility/report/report_utility.py,sha256=oG5HmpnUY1uU64fWSV6Tbr5v1xRCKLTq
66
66
  rephorm/utility/report/resolve_color.py,sha256=VMs3MHR8g1emzZZrB3nVetKHatNWq7_2PsZGHcAQOYQ,1220
67
67
  rephorm/utility/report/table_utility.py,sha256=mMEnR8doZ1I0xR3Jq_55ols7zDXdJ0GRf_u5NnkH9qE,1659
68
68
  rephorm/utility/report/title_utility.py,sha256=da2p6ad9nCm2RhUN09S9QxuE7H4sL3l5cA3llcDdVIo,1742
69
- rephorm-1.0.1.dist-info/licenses/LICENSE,sha256=J7qNT6dA5AkN4QCfd9uPlNftEs8jRiulHfO1ESxE3GU,1067
70
- rephorm-1.0.1.dist-info/METADATA,sha256=pHLRBVPVh03M4wdJ9CMY0mV6GnfT06-ovNv_ayrjhRw,2072
71
- rephorm-1.0.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
72
- rephorm-1.0.1.dist-info/top_level.txt,sha256=akVppyH53yfIlJ5BbtNzKZF4306s-1XJycsOZOhDbQ0,8
73
- rephorm-1.0.1.dist-info/RECORD,,
69
+ rephorm-1.0.2.dist-info/licenses/LICENSE,sha256=J7qNT6dA5AkN4QCfd9uPlNftEs8jRiulHfO1ESxE3GU,1067
70
+ rephorm-1.0.2.dist-info/METADATA,sha256=LoVkd2YHWuPsbmDSEYgfJRG77rGwUPNBX-qQcyjysdw,2454
71
+ rephorm-1.0.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
72
+ rephorm-1.0.2.dist-info/top_level.txt,sha256=akVppyH53yfIlJ5BbtNzKZF4306s-1XJycsOZOhDbQ0,8
73
+ rephorm-1.0.2.dist-info/RECORD,,