rephorm 1.0.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 (78) hide show
  1. rephorm-1.0.1/LICENSE +21 -0
  2. rephorm-1.0.1/PKG-INFO +41 -0
  3. rephorm-1.0.1/README.md +5 -0
  4. rephorm-1.0.1/pyproject.toml +60 -0
  5. rephorm-1.0.1/setup.cfg +4 -0
  6. rephorm-1.0.1/src/rephorm/__init__.py +19 -0
  7. rephorm-1.0.1/src/rephorm/decorators/__init__.py +0 -0
  8. rephorm-1.0.1/src/rephorm/decorators/settings_validation.py +49 -0
  9. rephorm-1.0.1/src/rephorm/dict/__init__.py +1 -0
  10. rephorm-1.0.1/src/rephorm/dict/colors.py +22 -0
  11. rephorm-1.0.1/src/rephorm/dict/legend_positions.py +136 -0
  12. rephorm-1.0.1/src/rephorm/dict/styles.py +206 -0
  13. rephorm-1.0.1/src/rephorm/dict/update_layout.py +129 -0
  14. rephorm-1.0.1/src/rephorm/dict/update_traces.py +90 -0
  15. rephorm-1.0.1/src/rephorm/object_mappers/__init__.py +0 -0
  16. rephorm-1.0.1/src/rephorm/object_mappers/_globals.py +16 -0
  17. rephorm-1.0.1/src/rephorm/object_mappers/_utilities/__init__.py +0 -0
  18. rephorm-1.0.1/src/rephorm/object_mappers/_utilities/chart_mapper_utility.py +34 -0
  19. rephorm-1.0.1/src/rephorm/object_mappers/_utilities/grid_mapper_utility.py +11 -0
  20. rephorm-1.0.1/src/rephorm/object_mappers/_utilities/table_mapper_utility.py +59 -0
  21. rephorm-1.0.1/src/rephorm/object_mappers/chapter_mapper.py +82 -0
  22. rephorm-1.0.1/src/rephorm/object_mappers/chart_mapper.py +120 -0
  23. rephorm-1.0.1/src/rephorm/object_mappers/chart_series_mapper.py +52 -0
  24. rephorm-1.0.1/src/rephorm/object_mappers/grid_mapper.py +106 -0
  25. rephorm-1.0.1/src/rephorm/object_mappers/page_break_mapper.py +8 -0
  26. rephorm-1.0.1/src/rephorm/object_mappers/report_mapper.py +76 -0
  27. rephorm-1.0.1/src/rephorm/object_mappers/table_mapper.py +191 -0
  28. rephorm-1.0.1/src/rephorm/object_mappers/table_section_mapper.py +41 -0
  29. rephorm-1.0.1/src/rephorm/object_mappers/table_series_mapper.py +79 -0
  30. rephorm-1.0.1/src/rephorm/object_mappers/text_mapper.py +36 -0
  31. rephorm-1.0.1/src/rephorm/object_params/__init__.py +0 -0
  32. rephorm-1.0.1/src/rephorm/object_params/settings.py +184 -0
  33. rephorm-1.0.1/src/rephorm/objects/__init__.py +0 -0
  34. rephorm-1.0.1/src/rephorm/objects/_utilities/__init__.py +0 -0
  35. rephorm-1.0.1/src/rephorm/objects/_utilities/settings_container.py +8 -0
  36. rephorm-1.0.1/src/rephorm/objects/chapter.py +44 -0
  37. rephorm-1.0.1/src/rephorm/objects/chart.py +70 -0
  38. rephorm-1.0.1/src/rephorm/objects/chart_series.py +40 -0
  39. rephorm-1.0.1/src/rephorm/objects/footnote.py +13 -0
  40. rephorm-1.0.1/src/rephorm/objects/grid.py +57 -0
  41. rephorm-1.0.1/src/rephorm/objects/page_break.py +13 -0
  42. rephorm-1.0.1/src/rephorm/objects/report.py +196 -0
  43. rephorm-1.0.1/src/rephorm/objects/table.py +76 -0
  44. rephorm-1.0.1/src/rephorm/objects/table_section.py +48 -0
  45. rephorm-1.0.1/src/rephorm/objects/table_series.py +36 -0
  46. rephorm-1.0.1/src/rephorm/objects/text.py +35 -0
  47. rephorm-1.0.1/src/rephorm/utility/PDF.py +80 -0
  48. rephorm-1.0.1/src/rephorm/utility/__init__.py +0 -0
  49. rephorm-1.0.1/src/rephorm/utility/add_style_prefix.py +30 -0
  50. rephorm-1.0.1/src/rephorm/utility/fonts/OpenSans-Bold.ttf +0 -0
  51. rephorm-1.0.1/src/rephorm/utility/fonts/OpenSans-BoldItalic.ttf +0 -0
  52. rephorm-1.0.1/src/rephorm/utility/fonts/OpenSans-Italic.ttf +0 -0
  53. rephorm-1.0.1/src/rephorm/utility/fonts/OpenSans.ttf +0 -0
  54. rephorm-1.0.1/src/rephorm/utility/fonts/__init__.py +0 -0
  55. rephorm-1.0.1/src/rephorm/utility/fonts/font_loading.py +74 -0
  56. rephorm-1.0.1/src/rephorm/utility/is_set.py +9 -0
  57. rephorm-1.0.1/src/rephorm/utility/merge/__init__.py +0 -0
  58. rephorm-1.0.1/src/rephorm/utility/merge/chart_properties_manager.py +80 -0
  59. rephorm-1.0.1/src/rephorm/utility/merge/merge_settings.py +134 -0
  60. rephorm-1.0.1/src/rephorm/utility/merge/merge_styles.py +79 -0
  61. rephorm-1.0.1/src/rephorm/utility/merge/pdf_merger.py +29 -0
  62. rephorm-1.0.1/src/rephorm/utility/report/__init__.py +0 -0
  63. rephorm-1.0.1/src/rephorm/utility/report/add_footnotes.py +46 -0
  64. rephorm-1.0.1/src/rephorm/utility/report/cleanup_utility.py +19 -0
  65. rephorm-1.0.1/src/rephorm/utility/report/footnotes_counter.py +15 -0
  66. rephorm-1.0.1/src/rephorm/utility/report/image_utility.py +14 -0
  67. rephorm-1.0.1/src/rephorm/utility/report/layout_utility.py +59 -0
  68. rephorm-1.0.1/src/rephorm/utility/report/range_utility.py +94 -0
  69. rephorm-1.0.1/src/rephorm/utility/report/report_utility.py +93 -0
  70. rephorm-1.0.1/src/rephorm/utility/report/resolve_color.py +39 -0
  71. rephorm-1.0.1/src/rephorm/utility/report/table_utility.py +71 -0
  72. rephorm-1.0.1/src/rephorm/utility/report/title_utility.py +49 -0
  73. rephorm-1.0.1/src/rephorm/utility/unit_converter.py +12 -0
  74. rephorm-1.0.1/src/rephorm.egg-info/PKG-INFO +41 -0
  75. rephorm-1.0.1/src/rephorm.egg-info/SOURCES.txt +76 -0
  76. rephorm-1.0.1/src/rephorm.egg-info/dependency_links.txt +1 -0
  77. rephorm-1.0.1/src/rephorm.egg-info/requires.txt +11 -0
  78. rephorm-1.0.1/src/rephorm.egg-info/top_level.txt +1 -0
rephorm-1.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 OGResearch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
rephorm-1.0.1/PKG-INFO ADDED
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: rephorm
3
+ Version: 1.0.1
4
+ Summary: Python package for generating PDF reports through code
5
+ Author-email: OGResearch <it@ogresearch.com>
6
+ Maintainer-email: Sergey Plotnikov <sergey.plotnikov@ogresearch.com>, Ngoc Nam Nguyen <nam.nguyen@ogresearch.com>, Martynas Vycas <martynas.vycas@ogresearch.com>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2025 OGResearch
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Classifier: Intended Audience :: Financial and Insurance Industry
30
+ Classifier: Programming Language :: Python :: 3
31
+ Classifier: Operating System :: OS Independent
32
+ Requires-Python: >=3.12
33
+ License-File: LICENSE
34
+ Requires-Dist: irispie>=0.61.0
35
+ Requires-Dist: fpdf2>=2.7.9
36
+ Requires-Dist: PyMuPDF>=1.25.1
37
+ Requires-Dist: twine==6.1.0
38
+ Requires-Dist: pkginfo>=1.12.1.2
39
+ Requires-Dist: kaleido==0.1.0post1; platform_system == "Windows"
40
+ Requires-Dist: kaleido==0.2.1; platform_system != "Windows"
41
+ Dynamic: license-file
@@ -0,0 +1,5 @@
1
+ Rephorm is a Python package for generating PDF reports through code. It builds on the capabilities of fpdf2 for PDF
2
+ rendering and IRISPIE for seamless integration of economic models and data.
3
+
4
+ Rephorm provides a modular framework of configurable objects that can be instantiated, customized, and composed to
5
+ create structured PDF reports.
@@ -0,0 +1,60 @@
1
+ [bumpver]
2
+ current_version = "1.0.1"
3
+ version_pattern = "MAJOR.MINOR.PATCH[.TAGNUM]"
4
+ tag_regex = "^{version}$"
5
+
6
+ [bumpver.file_patterns]
7
+ "pyproject.toml" = [
8
+ 'version = "{version}"'
9
+ ]
10
+ "src/rephorm/__init__.py" = [
11
+ '__version__ = "{version}"'
12
+ ]
13
+
14
+ [build-system]
15
+ requires = ["setuptools>=61.0", "wheel"]
16
+ build-backend = "setuptools.build_meta"
17
+
18
+ [project]
19
+ name = "rephorm"
20
+ version = "1.0.1"
21
+ description = "Python package for generating PDF reports through code"
22
+ authors = [
23
+ { name = "OGResearch", email = "it@ogresearch.com" }
24
+ ]
25
+ maintainers = [
26
+ { name = "Sergey Plotnikov", email = "sergey.plotnikov@ogresearch.com" },
27
+ { name = "Ngoc Nam Nguyen", email = "nam.nguyen@ogresearch.com" },
28
+ { name = "Martynas Vycas", email = "martynas.vycas@ogresearch.com" },
29
+ ]
30
+ license = { file = "LICENSE" }
31
+ #readme = "README.md" # Optional: if you want to include a README
32
+ requires-python = ">=3.12"
33
+ dependencies = [
34
+ "irispie >= 0.61.0",
35
+ "fpdf2 >= 2.7.9",
36
+ "PyMuPDF >= 1.25.1",
37
+ "twine == 6.1.0",
38
+ "pkginfo >= 1.12.1.2",
39
+ 'kaleido == 0.1.0post1; platform_system == "Windows"',
40
+ 'kaleido == 0.2.1; platform_system != "Windows"'
41
+ ]
42
+
43
+ classifiers = [
44
+ "Intended Audience :: Financial and Insurance Industry",
45
+ "Programming Language :: Python :: 3",
46
+ "Operating System :: OS Independent",
47
+ ]
48
+
49
+ [tool.setuptools]
50
+ package-dir = { "" = "src" }
51
+ include-package-data = true
52
+
53
+ [tool.setuptools.packages.find]
54
+ where = ["src"]
55
+
56
+ [tool.setuptools.package-data]
57
+ "rephorm.utility.fonts" = ["*.ttf"]
58
+
59
+ [tool.setuptools.dynamic]
60
+ version = { attr = "rephorm.__version__" }
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,19 @@
1
+ # from .report import *
2
+ from rephorm.objects.report import Report
3
+ from rephorm.objects.table_section import TableSection
4
+ from rephorm.objects.table import Table
5
+ from rephorm.objects.page_break import PageBreak
6
+ from rephorm.objects.grid import Grid
7
+ from rephorm.objects.chart import Chart
8
+ from rephorm.objects.chapter import Chapter
9
+ from .objects.text import Text
10
+ from rephorm.objects.footnote import Footnote
11
+ from rephorm.objects.chart_series import ChartSeries
12
+ from rephorm.objects.table_series import TableSeries
13
+
14
+ __version__ = "1.0.1"
15
+ __author__ = 'OGResearch team'
16
+ __credits__ = 'OGResearch'
17
+ __license__ = 'Copyright 2025 OGResearch, all rights reserved'
18
+
19
+
File without changes
@@ -0,0 +1,49 @@
1
+ import inspect
2
+
3
+ from rephorm.object_params.settings import object_params
4
+
5
+ def validate_kwargs(func):
6
+ """
7
+ A decorator that validates kwargs (keys and values).
8
+ It uses ultimate_setting_owner dict!
9
+ """
10
+ def wrapper(*args, **kwargs):
11
+ module_name = func.__module__.split('.')[-1].upper()
12
+
13
+ signature = inspect.signature(func)
14
+ excluded_keys = set(signature.parameters.keys())
15
+
16
+ for key, value in kwargs.items():
17
+
18
+ # Skip validation for object args/params (We want to validate only kwargs)
19
+ if key in excluded_keys and key not in object_params:
20
+ continue
21
+
22
+ # Validate key | If the key is within object_params (allowed keys)
23
+ if key not in object_params:
24
+ raise KeyError(f"{module_name}: Invalid key '{key}'. "
25
+ f"Allowed keys are: {list(object_params.keys())}")
26
+
27
+ # Get the expected type from ultimate_setting_owner
28
+ expected_type = object_params[key]["type"]
29
+ object_params_key = object_params[key]
30
+
31
+ # Validate value type
32
+ # to skip type-checking for complex types
33
+ if expected_type is None:
34
+ continue
35
+ if not isinstance(value, expected_type):
36
+ raise TypeError(
37
+ f"{module_name}: Argument '{key}' must be of type {expected_type.__name__}, "
38
+ f"got {type(value).__name__} instead."
39
+ )
40
+
41
+ # Validate possible values | if they are defined within the object_params
42
+ if "possible_values" in object_params_key and value not in object_params_key["possible_values"]:
43
+ possible_values = object_params_key["possible_values"]
44
+ raise ValueError(
45
+ f"{module_name}: Argument '{key}' has invalid value '{value}'. Allowed values are: {possible_values}")
46
+
47
+ return func(*args, **kwargs)
48
+
49
+ return wrapper
@@ -0,0 +1 @@
1
+ #
@@ -0,0 +1,22 @@
1
+ # Matlab default colors: https://nl.mathworks.com/help/matlab/creating_plots/specify-plot-colors.html
2
+ # Keep codes in hex format here, because FontFace do not accept rgb or rgba, (and we use it for text)
3
+ # for charts and plotly we do conversion to rgba in resolve_highlight_color
4
+
5
+ color_codes = {
6
+ "red": "#FF0000",
7
+ "r": "#FF0000",
8
+ "green": "#00FF00",
9
+ "g": "#00FF00",
10
+ "blue": "#0000FF",
11
+ "b": "#0000FF",
12
+ "cyan": "#00FFFF",
13
+ "c": "#00FFFF",
14
+ "magenta": "#FF00FF",
15
+ "m": "#FF00FF",
16
+ "yellow": "#FFFF00",
17
+ "y": "#FFFF00",
18
+ "black": "#000000",
19
+ "k": "#000000",
20
+ "white": "#FFFFFF",
21
+ "w": "#FFFFFF"
22
+ }
@@ -0,0 +1,136 @@
1
+ legend_positions = {
2
+ # Center positions
3
+ "C": { # Center (Inline)
4
+ "x": 0.5,
5
+ "y": 0.5,
6
+ "xanchor": "center",
7
+ "yanchor": "middle",
8
+ "yref": "paper"
9
+ },
10
+ # Inside positions
11
+ "N": { # North (Top-Center)
12
+ "x": 0.5,
13
+ "y": 1,
14
+ "xanchor": "center",
15
+ "yanchor": "top",
16
+ "yref": "paper"
17
+ },
18
+ "S": { # South (Bottom-Center)
19
+ "x": 0.5,
20
+ "y": 0,
21
+ "xanchor": "center",
22
+ "yanchor": "bottom",
23
+ "yref": "paper"
24
+ },
25
+ "E": { # East (Right-Center)
26
+ "x": 1,
27
+ "y": 0.5,
28
+ "xanchor": "right",
29
+ "yanchor": "middle",
30
+ "yref": "paper"
31
+ },
32
+ "W": { # West (Left-Center)
33
+ "x": 0,
34
+ "y": 0.5,
35
+ "xanchor": "left",
36
+ "yanchor": "middle",
37
+ "yref": "paper"
38
+ },
39
+ "NE": { # North-East (Top-Right)
40
+ "x": 1,
41
+ "y": 1,
42
+ "xanchor": "right",
43
+ "yanchor": "top",
44
+ "yref": "paper"
45
+ },
46
+ "NW": { # North-West (Top-Left)
47
+ "x": 0,
48
+ "y": 1,
49
+ "xanchor": "left",
50
+ "yanchor": "top",
51
+ "yref": "paper"
52
+ },
53
+ "SE": { # South-East (Bottom-Right)
54
+ "x": 1,
55
+ "y": 0,
56
+ "xanchor": "right",
57
+ "yanchor": "bottom",
58
+ "yref": "paper"
59
+ },
60
+ "SW": { # South-West (Bottom-Left)
61
+ "x": 0,
62
+ "y": 0,
63
+ "xanchor": "left",
64
+ "yanchor": "bottom",
65
+ "yref": "paper"
66
+ },
67
+
68
+ # Outside positions
69
+ "NO": { # North-Outside (Above Top-Center)
70
+ "x": 0.5,
71
+ "y": 0.89,
72
+ "xanchor": "center",
73
+ "yanchor": "top",
74
+ "yref": "container"
75
+ },
76
+ "SO": { # South-Outside (Below Bottom-Center)
77
+ "x": 0.5,
78
+ # "y": 0,
79
+ "xanchor": "center",
80
+ # "yanchor": "bottom",
81
+ # "yref": "container"
82
+ },
83
+ # South-Outside (ADJUSTED) Need proper testing
84
+ # TODO: Consider changing back to "paper" and off-setting POS using negatives.
85
+ # "SO": {
86
+ # "x": 0.5,
87
+ # "y": -0.15,
88
+ # "xanchor": "center",
89
+ # "yanchor": "top",
90
+ # "yref": "paper"
91
+ # },
92
+ "EO": { # East-Outside (Right of Chart)
93
+ "x": 0.8,
94
+ "y": 0.5,
95
+ "xanchor": "left",
96
+ "yanchor": "middle",
97
+ "yref": "container",
98
+ "xref": "container"
99
+ },
100
+ "WO": { # West-Outside (Left of Chart)
101
+ "x": 0,
102
+ "y": 0.5,
103
+ "xanchor": "left",
104
+ "yanchor": "middle",
105
+ "yref": "container",
106
+ "xref": "container"
107
+ },
108
+ "NEO": { # North-East-Outside (Above Top-Right)
109
+ "x": 1,
110
+ "y": -0.1,
111
+ "xanchor": "right",
112
+ "yanchor": "top",
113
+ "yref": "container"
114
+ },
115
+ "NWO": { # North-West-Outside (Above Top-Left)
116
+ "x": 0,
117
+ "y": -0.1,
118
+ "xanchor": "left",
119
+ "yanchor": "top",
120
+ "yref": "container"
121
+ },
122
+ "SEO": {
123
+ "x": 1,
124
+ "y": 0,
125
+ "xanchor": "right",
126
+ "yanchor": "bottom",
127
+ "yref": "container",
128
+ },
129
+ "SWO": { # South-West-Outside (Below Bottom-Left)
130
+ "x": 0,
131
+ "y": 0,
132
+ "xanchor": "left",
133
+ "yanchor": "bottom",
134
+ "yref": "container"
135
+ }
136
+ }
@@ -0,0 +1,206 @@
1
+ DEFAULT_FONT_FAMILY = "Helvetica" # This was agreed upon
2
+
3
+ def default_styles(font_family=DEFAULT_FONT_FAMILY):
4
+ return {
5
+ "table": {
6
+ "highlight_color": "#E0E0E0",
7
+ "title": {
8
+ "font_style": "B",
9
+ "font_family": font_family,
10
+ "font_color": "#000000",
11
+ "font_size": 13,
12
+ },
13
+ "heading": {
14
+ "font_style": "",
15
+ "font_family": font_family,
16
+ "font_color": "#000000",
17
+ "font_size": 10,
18
+ "highlight_color": "#E0E0E0",
19
+ },
20
+ "series": {
21
+ "font_style": "",
22
+ "font_family": font_family,
23
+ "font_color": "#000000",
24
+ "font_size": 10,
25
+ "highlight_color": "#E0E0E0",
26
+ },
27
+ "section": {
28
+ "font_style": "",
29
+ "font_family": font_family,
30
+ "font_color": "#000000",
31
+ "font_size": 10,
32
+ "highlight_color": "#E0E0E0",
33
+ }
34
+ },
35
+ "text": {
36
+ "font_style": "",
37
+ "font_family": font_family,
38
+ "font_size": 10,
39
+ "title": {
40
+ "font_style": "B",
41
+ "font_family": font_family,
42
+ "font_size": 16,
43
+ }
44
+ },
45
+ "footnotes": {
46
+ "font_size": 8,
47
+ "font_color": "#000000",
48
+ "font_style": "",
49
+ "font_family": font_family,
50
+ },
51
+ "grid": {
52
+ "title": {
53
+ "font_style": "B",
54
+ "font_family": font_family,
55
+ "font_color": "#000000",
56
+ "font_size": 13,
57
+ },
58
+ },
59
+ "chapter": {
60
+ "title": {
61
+ "font_style": "B",
62
+ "font_family": font_family,
63
+ "font_color": "#000000",
64
+ "font_size": 16,
65
+ },
66
+ "font_style": "",
67
+ "font_family": font_family,
68
+ "font_size": 11,
69
+ },
70
+ "chart": {
71
+ "highlight_color": "rgba(0, 0, 0, 0.12)",
72
+ "grid_color": "lightgrey",
73
+ "bg_color": "rgba(0, 255, 0, 0)",
74
+ "chart_border_color": "#000000",
75
+ "line_styles_order": [
76
+ "solid"
77
+ ],
78
+ "line_color_order": [
79
+ "rgb(31, 119, 180)",
80
+ "rgb(255, 127, 14)",
81
+ "rgb(44, 160, 44)",
82
+ "rgb(214, 39, 40)",
83
+ "rgb(148, 103, 189)",
84
+ "rgb(140, 86, 75)",
85
+ "rgb(227, 119, 194)",
86
+ "rgb(127, 127, 127)",
87
+ "rgb(188, 189, 34)",
88
+ "rgb(23, 190, 207)"
89
+ ],
90
+ "bar_color_order": [
91
+ "rgb(31, 119, 180)",
92
+ "rgb(255, 127, 14)",
93
+ "rgb(44, 160, 44)",
94
+ "rgb(214, 39, 40)",
95
+ "rgb(148, 103, 189)",
96
+ "rgb(140, 86, 75)",
97
+ "rgb(227, 119, 194)",
98
+ "rgb(127, 127, 127)",
99
+ "rgb(188, 189, 34)",
100
+ "rgb(23, 190, 207)"
101
+ ],
102
+ "line_width_order": [1],
103
+ "series": {
104
+ "bar_edge_color": "black",
105
+ "bar_face_color": None,
106
+ "bar_edge_width": 1.0,
107
+ "line_width": None,
108
+ "line_style": None,
109
+ "line_color": None,
110
+ "marker_color": "#46b336",
111
+ "marker_size": 1,
112
+ "marker_width": 1,
113
+ },
114
+ "legend": {
115
+ "border_width": 0,
116
+ "bg_color": "rgba(255, 255, 255, 0)",
117
+ "font_style": "",
118
+ "font_family": font_family,
119
+ "font_color": "#000000",
120
+ "font_size": 8,
121
+ },
122
+ "title": {
123
+ "font_style": "",
124
+ "font_family": font_family,
125
+ "font_color": "#000000",
126
+ "font_size": 11,
127
+ },
128
+ "x_axis": {
129
+ "ticks": {
130
+ "font_size": 10,
131
+ "font_color": "#000000",
132
+ "font_family": font_family,
133
+ },
134
+ "label": {
135
+ "font_size": 10,
136
+ "font_color": "#000000",
137
+ "font_family": font_family,
138
+ }
139
+ },
140
+ "y_axis": {
141
+ "ticks": {
142
+ "font_size": 10,
143
+ "font_color": "#000000",
144
+ "font_family": font_family,
145
+ },
146
+ "label": {
147
+ "font_size": 10,
148
+ "font_color": "#000000",
149
+ "font_family": font_family,
150
+ },
151
+ },
152
+ "y_axis2": {
153
+ "ticks": {
154
+ "font_size": 10,
155
+ "font_color": "#000000",
156
+ "font_family": font_family,
157
+
158
+ },
159
+ "label": {
160
+ "font_size": 10,
161
+ "font_color": "#000000",
162
+ "font_family": font_family,
163
+ }
164
+ },
165
+ },
166
+ "report": {
167
+ # only front page title
168
+ "title": {
169
+ "font_style": "B",
170
+ "font_size": 25,
171
+ "font_color": "#000000",
172
+ "font_family": font_family,
173
+ },
174
+ "subtitle": {
175
+ "font_style": "B",
176
+ "font_size": 21,
177
+ "font_color": "#000000",
178
+ "font_family": font_family,
179
+ },
180
+ "abstract": {
181
+ "height": 50,
182
+ "font_size": 10,
183
+ "font_color": "#000000",
184
+ "font_family": font_family,
185
+ },
186
+ "footer": {
187
+ "height": 15,
188
+ "top_margin": 5,
189
+ "top_padding": 5,
190
+ },
191
+ "header": {
192
+ "height": 20,
193
+ "bottom_margin": 5,
194
+ },
195
+ "font_style": "",
196
+ "font_family": font_family,
197
+ "font_color": "#000000",
198
+ "page_margin_top": 10,
199
+ "page_margin_right": 40,
200
+ "page_margin_bottom": 15,
201
+ "page_margin_left": 40,
202
+ #Todo: Find a better name for it.
203
+ "title_bottom_padding": 10,
204
+ "logo_height": 15,
205
+ }
206
+ }