pyreportkit 0.1.0__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.
- pyreportkit-0.1.0.dist-info/METADATA +187 -0
- pyreportkit-0.1.0.dist-info/RECORD +222 -0
- pyreportkit-0.1.0.dist-info/WHEEL +5 -0
- pyreportkit-0.1.0.dist-info/licenses/LICENSE +21 -0
- pyreportkit-0.1.0.dist-info/top_level.txt +1 -0
- reportkit/__init__.py +0 -0
- reportkit/components/__init__.py +45 -0
- reportkit/components/document/__init__.py +6 -0
- reportkit/components/document/footer.py +12 -0
- reportkit/components/document/header.py +12 -0
- reportkit/components/document/page.py +18 -0
- reportkit/components/document/report.py +12 -0
- reportkit/components/information/__init__.py +4 -0
- reportkit/components/information/info_grid.py +23 -0
- reportkit/components/information/key_value.py +28 -0
- reportkit/components/layout/__init__.py +9 -0
- reportkit/components/layout/box.py +10 -0
- reportkit/components/layout/column.py +15 -0
- reportkit/components/layout/divider.py +10 -0
- reportkit/components/layout/grid.py +12 -0
- reportkit/components/layout/row.py +15 -0
- reportkit/components/layout/section.py +10 -0
- reportkit/components/layout/spacer.py +12 -0
- reportkit/components/media/__init__.py +4 -0
- reportkit/components/media/chart.py +14 -0
- reportkit/components/media/image.py +25 -0
- reportkit/components/pagination/__init__.py +5 -0
- reportkit/components/pagination/page_break.py +10 -0
- reportkit/components/pagination/page_count.py +10 -0
- reportkit/components/pagination/page_number.py +21 -0
- reportkit/components/table/__init__.py +7 -0
- reportkit/components/table/cell.py +27 -0
- reportkit/components/table/column.py +29 -0
- reportkit/components/table/row.py +25 -0
- reportkit/components/table/style.py +18 -0
- reportkit/components/table/table.py +27 -0
- reportkit/components/typography/__init__.py +6 -0
- reportkit/components/typography/heading.py +13 -0
- reportkit/components/typography/rich_text.py +23 -0
- reportkit/components/typography/text.py +12 -0
- reportkit/components/typography/text_span.py +24 -0
- reportkit/core/__init__.py +4 -0
- reportkit/core/component.py +12 -0
- reportkit/core/container.py +66 -0
- reportkit/core/exceptions.py +0 -0
- reportkit/core/factory.py +53 -0
- reportkit/core/registry.py +50 -0
- reportkit/core/serializer.py +90 -0
- reportkit/exporters/__init__.py +0 -0
- reportkit/exporters/base.py +17 -0
- reportkit/exporters/excel/__init__.py +8 -0
- reportkit/exporters/excel/exceptions.py +4 -0
- reportkit/exporters/excel/exporter.py +68 -0
- reportkit/exporters/excel/renderers/__init__.py +34 -0
- reportkit/exporters/excel/renderers/base.py +27 -0
- reportkit/exporters/excel/renderers/information.py +55 -0
- reportkit/exporters/excel/renderers/layout/__init__.py +7 -0
- reportkit/exporters/excel/renderers/layout/columns.py +48 -0
- reportkit/exporters/excel/renderers/layout/data.py +46 -0
- reportkit/exporters/excel/renderers/layout/page.py +24 -0
- reportkit/exporters/excel/renderers/layout/spacing.py +30 -0
- reportkit/exporters/excel/renderers/layout/stack.py +13 -0
- reportkit/exporters/excel/renderers/media.py +46 -0
- reportkit/exporters/excel/renderers/registry.py +22 -0
- reportkit/exporters/excel/renderers/table/__init__.py +4 -0
- reportkit/exporters/excel/renderers/table/cells.py +17 -0
- reportkit/exporters/excel/renderers/table/data.py +38 -0
- reportkit/exporters/excel/renderers/table/renderer.py +64 -0
- reportkit/exporters/excel/renderers/table/widths.py +29 -0
- reportkit/exporters/excel/renderers/text.py +40 -0
- reportkit/exporters/excel/styles.py +130 -0
- reportkit/exporters/excel/values/__init__.py +5 -0
- reportkit/exporters/excel/values/cells.py +60 -0
- reportkit/exporters/excel/values/components.py +16 -0
- reportkit/exporters/excel/values/formats.py +31 -0
- reportkit/exporters/excel/values/numbers.py +19 -0
- reportkit/exporters/excel/workbook/__init__.py +5 -0
- reportkit/exporters/excel/workbook/data.py +48 -0
- reportkit/exporters/excel/workbook/formatted.py +63 -0
- reportkit/exporters/excel/workbook/styles.py +27 -0
- reportkit/exporters/excel/workbook/workbook.py +65 -0
- reportkit/exporters/excel/worksheet/__init__.py +5 -0
- reportkit/exporters/excel/worksheet/borders.py +30 -0
- reportkit/exporters/excel/worksheet/cells.py +38 -0
- reportkit/exporters/excel/worksheet/constants.py +12 -0
- reportkit/exporters/excel/worksheet/data.py +51 -0
- reportkit/exporters/excel/worksheet/formatted.py +158 -0
- reportkit/exporters/excel/worksheet/page.py +23 -0
- reportkit/exporters/html/__init__.py +6 -0
- reportkit/exporters/html/assets.py +87 -0
- reportkit/exporters/html/direction.py +15 -0
- reportkit/exporters/html/engine.py +37 -0
- reportkit/exporters/html/exporter.py +38 -0
- reportkit/exporters/html/page/__init__.py +3 -0
- reportkit/exporters/html/page/components.py +47 -0
- reportkit/exporters/html/page/margins.py +24 -0
- reportkit/exporters/html/page/numbering.py +31 -0
- reportkit/exporters/html/page/resolver.py +37 -0
- reportkit/exporters/html/page/running.py +30 -0
- reportkit/exporters/html/page/styles.py +22 -0
- reportkit/exporters/html/page/validator.py +76 -0
- reportkit/exporters/html/registry.py +45 -0
- reportkit/exporters/html/renderers/__init__.py +37 -0
- reportkit/exporters/html/renderers/base.py +20 -0
- reportkit/exporters/html/renderers/document/__init__.py +6 -0
- reportkit/exporters/html/renderers/document/footer.py +18 -0
- reportkit/exporters/html/renderers/document/header.py +18 -0
- reportkit/exporters/html/renderers/document/page.py +17 -0
- reportkit/exporters/html/renderers/document/report.py +16 -0
- reportkit/exporters/html/renderers/information/__init__.py +4 -0
- reportkit/exporters/html/renderers/information/info_grid.py +26 -0
- reportkit/exporters/html/renderers/information/key_value.py +18 -0
- reportkit/exporters/html/renderers/layout/__init__.py +9 -0
- reportkit/exporters/html/renderers/layout/box.py +17 -0
- reportkit/exporters/html/renderers/layout/column.py +41 -0
- reportkit/exporters/html/renderers/layout/divider.py +16 -0
- reportkit/exporters/html/renderers/layout/grid.py +48 -0
- reportkit/exporters/html/renderers/layout/row.py +35 -0
- reportkit/exporters/html/renderers/layout/section.py +17 -0
- reportkit/exporters/html/renderers/layout/spacer.py +18 -0
- reportkit/exporters/html/renderers/media/__init__.py +3 -0
- reportkit/exporters/html/renderers/media/image.py +18 -0
- reportkit/exporters/html/renderers/pagination/__init__.py +4 -0
- reportkit/exporters/html/renderers/pagination/page_break.py +15 -0
- reportkit/exporters/html/renderers/pagination/page_number.py +15 -0
- reportkit/exporters/html/renderers/table/__init__.py +4 -0
- reportkit/exporters/html/renderers/table/cell.py +77 -0
- reportkit/exporters/html/renderers/table/table.py +69 -0
- reportkit/exporters/html/renderers/typography/__init__.py +5 -0
- reportkit/exporters/html/renderers/typography/heading.py +18 -0
- reportkit/exporters/html/renderers/typography/rich_text.py +28 -0
- reportkit/exporters/html/renderers/typography/text.py +16 -0
- reportkit/exporters/html/static/base.css +45 -0
- reportkit/exporters/html/static/information.css +83 -0
- reportkit/exporters/html/static/layout.css +81 -0
- reportkit/exporters/html/static/media.css +10 -0
- reportkit/exporters/html/static/pdf.css +96 -0
- reportkit/exporters/html/static/print.css +91 -0
- reportkit/exporters/html/static/table.css +222 -0
- reportkit/exporters/html/static/tokens.css +68 -0
- reportkit/exporters/html/static/typography.css +54 -0
- reportkit/exporters/html/styles.py +167 -0
- reportkit/exporters/html/templates/components/document/footer.html +3 -0
- reportkit/exporters/html/templates/components/document/header.html +3 -0
- reportkit/exporters/html/templates/components/document/page.html +8 -0
- reportkit/exporters/html/templates/components/document/report.html +3 -0
- reportkit/exporters/html/templates/components/information/info_grid.html +6 -0
- reportkit/exporters/html/templates/components/information/key_value.html +9 -0
- reportkit/exporters/html/templates/components/layout/box.html +3 -0
- reportkit/exporters/html/templates/components/layout/column.html +3 -0
- reportkit/exporters/html/templates/components/layout/divider.html +1 -0
- reportkit/exporters/html/templates/components/layout/grid.html +3 -0
- reportkit/exporters/html/templates/components/layout/row.html +3 -0
- reportkit/exporters/html/templates/components/layout/section.html +3 -0
- reportkit/exporters/html/templates/components/layout/spacer.html +1 -0
- reportkit/exporters/html/templates/components/media/image.html +8 -0
- reportkit/exporters/html/templates/components/pagination/page_break.html +1 -0
- reportkit/exporters/html/templates/components/pagination/page_number.html +4 -0
- reportkit/exporters/html/templates/components/table/cell.html +7 -0
- reportkit/exporters/html/templates/components/table/table.html +34 -0
- reportkit/exporters/html/templates/components/typography/heading.html +1 -0
- reportkit/exporters/html/templates/components/typography/rich_text.html +5 -0
- reportkit/exporters/html/templates/components/typography/text.html +1 -0
- reportkit/exporters/html/templates/document.html +17 -0
- reportkit/exporters/html/templates.py +30 -0
- reportkit/exporters/json.py +0 -0
- reportkit/exporters/pdf/__init__.py +8 -0
- reportkit/exporters/pdf/conversion.py +104 -0
- reportkit/exporters/pdf/dependencies.py +12 -0
- reportkit/exporters/pdf/exceptions.py +4 -0
- reportkit/exporters/pdf/exporter.py +16 -0
- reportkit/exporters/pdf/resources/__init__.py +4 -0
- reportkit/exporters/pdf/resources/fetcher.py +37 -0
- reportkit/exporters/pdf/resources/policy.py +60 -0
- reportkit/exporters/registry.py +50 -0
- reportkit/exporters/word/__init__.py +8 -0
- reportkit/exporters/word/document/__init__.py +4 -0
- reportkit/exporters/word/document/document.py +74 -0
- reportkit/exporters/word/document/engine.py +71 -0
- reportkit/exporters/word/exceptions.py +4 -0
- reportkit/exporters/word/exporter.py +32 -0
- reportkit/exporters/word/renderers/__init__.py +24 -0
- reportkit/exporters/word/renderers/base.py +56 -0
- reportkit/exporters/word/renderers/information.py +30 -0
- reportkit/exporters/word/renderers/layout/__init__.py +6 -0
- reportkit/exporters/word/renderers/layout/columns.py +82 -0
- reportkit/exporters/word/renderers/layout/page.py +38 -0
- reportkit/exporters/word/renderers/layout/spacing.py +33 -0
- reportkit/exporters/word/renderers/layout/stack.py +50 -0
- reportkit/exporters/word/renderers/media.py +49 -0
- reportkit/exporters/word/renderers/registry.py +22 -0
- reportkit/exporters/word/renderers/table/__init__.py +3 -0
- reportkit/exporters/word/renderers/table/cells.py +39 -0
- reportkit/exporters/word/renderers/table/renderer.py +95 -0
- reportkit/exporters/word/renderers/table/widths.py +12 -0
- reportkit/exporters/word/renderers/text.py +40 -0
- reportkit/exporters/word/styles/__init__.py +3 -0
- reportkit/exporters/word/styles/text.py +90 -0
- reportkit/exporters/word/styles/xml.py +147 -0
- reportkit/exporters/word/values.py +36 -0
- reportkit/formatting/__init__.py +0 -0
- reportkit/formatting/cell.py +12 -0
- reportkit/formatting/cells.py +41 -0
- reportkit/formatting/values.py +106 -0
- reportkit/rendering/__init__.py +0 -0
- reportkit/rendering/context.py +31 -0
- reportkit/rendering/table.py +56 -0
- reportkit/rendering/tracks.py +51 -0
- reportkit/rendering/visitor.py +55 -0
- reportkit/report.py +0 -0
- reportkit/styles/__init__.py +0 -0
- reportkit/styles/borders.py +6 -0
- reportkit/styles/style.py +117 -0
- reportkit/styles/table.py +37 -0
- reportkit/styles/theme.py +45 -0
- reportkit/styles/tokens.py +29 -0
- reportkit/validators/__init__.py +3 -0
- reportkit/validators/table/__init__.py +3 -0
- reportkit/validators/table/cell.py +38 -0
- reportkit/validators/table/column.py +62 -0
- reportkit/validators/table/row.py +37 -0
- reportkit/validators/table/table.py +63 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyreportkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Build bilingual (Arabic/English, RTL/LTR) reports from reusable components and export them to HTML, PDF, Excel and Word.
|
|
5
|
+
Author: Abdullah Alaidrous
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/abdalaidrous/reportkit
|
|
8
|
+
Project-URL: Repository, https://github.com/abdalaidrous/reportkit
|
|
9
|
+
Project-URL: Issues, https://github.com/abdalaidrous/reportkit/issues
|
|
10
|
+
Keywords: report,reporting,pdf,excel,xlsx,docx,html,arabic,rtl
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Natural Language :: Arabic
|
|
14
|
+
Classifier: Natural Language :: English
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Office/Business
|
|
21
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: Jinja2>=3.1
|
|
26
|
+
Provides-Extra: pdf
|
|
27
|
+
Requires-Dist: weasyprint>=70; extra == "pdf"
|
|
28
|
+
Provides-Extra: excel
|
|
29
|
+
Requires-Dist: openpyxl>=3.1; extra == "excel"
|
|
30
|
+
Requires-Dist: pillow>=10; extra == "excel"
|
|
31
|
+
Provides-Extra: word
|
|
32
|
+
Requires-Dist: python-docx>=1.1; extra == "word"
|
|
33
|
+
Provides-Extra: all
|
|
34
|
+
Requires-Dist: weasyprint>=70; extra == "all"
|
|
35
|
+
Requires-Dist: openpyxl>=3.1; extra == "all"
|
|
36
|
+
Requires-Dist: pillow>=10; extra == "all"
|
|
37
|
+
Requires-Dist: python-docx>=1.1; extra == "all"
|
|
38
|
+
Provides-Extra: test
|
|
39
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
|
|
42
|
+
# ReportKit
|
|
43
|
+
|
|
44
|
+
Build reports from reusable components and export the same report to **HTML**, **PDF**, **Excel (XLSX)** and **Word (DOCX)**.
|
|
45
|
+
ReportKit is built for bilingual Arabic/English documents: right-to-left and left-to-right text, mixed-direction values
|
|
46
|
+
and RTL tables are handled in every format.
|
|
47
|
+
|
|
48
|
+
ReportKit is a presentation library. Your application prepares the rows, totals and summaries; ReportKit only lays them
|
|
49
|
+
out, styles them and exports them. It never computes or aggregates report data.
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pip install pyreportkit # HTML export
|
|
55
|
+
pip install "pyreportkit[pdf]" # + PDF (WeasyPrint)
|
|
56
|
+
pip install "pyreportkit[excel]" # + Excel (openpyxl, Pillow)
|
|
57
|
+
pip install "pyreportkit[word]" # + Word (python-docx)
|
|
58
|
+
pip install "pyreportkit[all]" # every exporter
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
PDF export uses [WeasyPrint](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html), which needs the Pango
|
|
62
|
+
system libraries (`apt install libpango-1.0-0 libpangoft2-1.0-0` on Debian/Ubuntu). On Windows, the simplest option is
|
|
63
|
+
the provided `Dockerfile`.
|
|
64
|
+
|
|
65
|
+
Requires Python 3.10 or newer.
|
|
66
|
+
|
|
67
|
+
## Quick start
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
from reportkit.components.document import Page, Report
|
|
71
|
+
from reportkit.components.layout import Grid
|
|
72
|
+
from reportkit.components.table import Table, TableCell, TableColumn, TableRow
|
|
73
|
+
from reportkit.components.typography import Heading, Text
|
|
74
|
+
from reportkit.rendering.context import RenderingContext
|
|
75
|
+
from reportkit.styles.style import Style
|
|
76
|
+
|
|
77
|
+
report = Report(title="Financial Movement Report", children=[
|
|
78
|
+
Page(size="A4", orientation="portrait", page_number_position="bottom-center", children=[
|
|
79
|
+
Grid(columns="1fr 1fr", children=[
|
|
80
|
+
Heading(value="تقرير الحركة المالية", level=2, style=Style(text_align="right")),
|
|
81
|
+
Text(value="Financial Movement Report", style=Style(text_align="left")),
|
|
82
|
+
]),
|
|
83
|
+
Table(
|
|
84
|
+
columns=[
|
|
85
|
+
TableColumn(key="voucher", title="رقم السند", subtitle="Voucher No."),
|
|
86
|
+
TableColumn(key="date", title="التاريخ", subtitle="Date"),
|
|
87
|
+
TableColumn(key="amount", title="المبلغ", subtitle="Amount", format="number"),
|
|
88
|
+
],
|
|
89
|
+
rows=[
|
|
90
|
+
TableRow(values={
|
|
91
|
+
"voucher": "000004",
|
|
92
|
+
"date": TableCell(children=[Text(value="14/11/2026"), Text(value="12:47 AM", style=Style(font_size=9, color="#777777"))]),
|
|
93
|
+
"amount": 200,
|
|
94
|
+
}),
|
|
95
|
+
],
|
|
96
|
+
footer=TableRow(values={"voucher": "الإجمالي", "amount": 200}, kind="total"),
|
|
97
|
+
),
|
|
98
|
+
]),
|
|
99
|
+
])
|
|
100
|
+
|
|
101
|
+
context = RenderingContext(language="ar", direction="rtl")
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Rows can be any iterable, including generators and database cursors: they are read one at a time and never loaded into
|
|
105
|
+
a list.
|
|
106
|
+
|
|
107
|
+
## Exporting
|
|
108
|
+
|
|
109
|
+
Every exporter returns `bytes`; saving or sending them is up to your application.
|
|
110
|
+
|
|
111
|
+
### HTML
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
import reportkit.exporters.html
|
|
115
|
+
from reportkit.exporters.html.exporter import HtmlExporter
|
|
116
|
+
|
|
117
|
+
html = HtmlExporter().export(report, context)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### PDF
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
from reportkit.exporters.pdf import PdfExporter
|
|
124
|
+
|
|
125
|
+
pdf = PdfExporter.export(report, context)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The PDF is rendered from the same HTML and CSS. Only embedded images (`data:` URIs) and files inside an optional
|
|
129
|
+
`base_url` folder are loaded; network resources are refused, and any resource that cannot be loaded fails the export
|
|
130
|
+
instead of producing an incomplete PDF.
|
|
131
|
+
|
|
132
|
+
### Excel
|
|
133
|
+
|
|
134
|
+
```python
|
|
135
|
+
from reportkit.exporters.excel import ExcelExporter, ExcelOptions
|
|
136
|
+
|
|
137
|
+
xlsx = ExcelExporter().export(report, context) # looks like the PDF
|
|
138
|
+
xlsx = ExcelExporter().export(report, context, ExcelOptions(mode="data", streaming=True)) # one typed sheet per table
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
- `formatted` (default): one printable sheet with merged cells, colors, borders, logo, RTL and print settings.
|
|
142
|
+
- `data`: analysis-ready sheets with real numbers and dates, frozen headers and AutoFilter. With `streaming=True` memory
|
|
143
|
+
stays flat, which is the right choice for very large reports.
|
|
144
|
+
- Values are written as they arrive: no formulas, text is always stored as text (formula injection safe), and decimals
|
|
145
|
+
beyond Excel's 15 significant digits raise an error unless `decimal_policy="text"`.
|
|
146
|
+
|
|
147
|
+
### Word
|
|
148
|
+
|
|
149
|
+
```python
|
|
150
|
+
from reportkit.exporters.word import WordExporter
|
|
151
|
+
|
|
152
|
+
docx = WordExporter().export(report, context)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Tables repeat their header row on every page, repeating headers and footers go to the Word page header and footer, and
|
|
156
|
+
page numbers use Word's PAGE and NUMPAGES fields.
|
|
157
|
+
|
|
158
|
+
### Exporter registry
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
import reportkit.exporters.html, reportkit.exporters.pdf, reportkit.exporters.excel, reportkit.exporters.word
|
|
162
|
+
from reportkit.exporters.registry import ExporterRegistry
|
|
163
|
+
|
|
164
|
+
exporter = ExporterRegistry.get("xlsx")() # "html", "pdf", "excel"/"xlsx", "word"/"docx"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Components
|
|
168
|
+
|
|
169
|
+
| Group | Components |
|
|
170
|
+
|---|---|
|
|
171
|
+
| Document | `Report`, `Page`, `Header`, `Footer` |
|
|
172
|
+
| Layout | `Box`, `Section`, `Row`, `Column`, `Grid`, `Spacer`, `Divider` |
|
|
173
|
+
| Typography | `Text`, `Heading`, `RichText`, `TextSpan` |
|
|
174
|
+
| Tables | `Table`, `TableColumn`, `TableRow`, `TableCell`, `TableStyle` |
|
|
175
|
+
| Information | `KeyValue`, `InfoGrid` |
|
|
176
|
+
| Media | `Image` |
|
|
177
|
+
| Pagination | `PageBreak`, `PageNumber` |
|
|
178
|
+
|
|
179
|
+
Styles are immutable `Style` objects; table colors and spacing come from CSS design tokens shared by every exporter.
|
|
180
|
+
|
|
181
|
+
## Development
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
pip install -r requirements-dev.txt
|
|
185
|
+
python -m pytest tests
|
|
186
|
+
docker build -t reportkit . && docker run --rm reportkit # full suite, including PDF
|
|
187
|
+
```
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
pyreportkit-0.1.0.dist-info/licenses/LICENSE,sha256=j9ZJp6g7i5aZOrTslWotk7bcUOd-Qd8X9WSMOvdjo_Y,1075
|
|
2
|
+
reportkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
reportkit/report.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
reportkit/components/__init__.py,sha256=Q81hjZ37MdItUcOrpVyV7h9GJtAd13sAensR8aYMoqM,1372
|
|
5
|
+
reportkit/components/document/__init__.py,sha256=1W5m1M70UNgkdJV33dILSRye1lPAB1WlW9-hJhIpiB0,154
|
|
6
|
+
reportkit/components/document/footer.py,sha256=y7gVWmz65ALkNpCZqmnvst71vSTbLTd5xHSOUlFCjGE,222
|
|
7
|
+
reportkit/components/document/header.py,sha256=pc9ursrArnGpOCzT3-syUem8R4mIdpT7vEgvx9OfLqI,222
|
|
8
|
+
reportkit/components/document/page.py,sha256=3Djth6Xe-T-Y72r9T1PEQox1bQ37xQkqbDylcRoq3t8,488
|
|
9
|
+
reportkit/components/document/report.py,sha256=VDU9ilszQykYUJNRWh1A1iTL4wlsq9iOYImt3tkJE2w,202
|
|
10
|
+
reportkit/components/information/__init__.py,sha256=c2pHDH4q2j5KLAaqyOFsQj57blq3JRKoumg7YxoutS4,100
|
|
11
|
+
reportkit/components/information/info_grid.py,sha256=9_IcBrCzLxBMFWvcnDi2Cyl9NZJAjJbn2cDvFsBYjYI,703
|
|
12
|
+
reportkit/components/information/key_value.py,sha256=n_3oECBbqjH8iDIOcjJG5urcUDZIwGLqvnAmKCdNlfE,811
|
|
13
|
+
reportkit/components/layout/__init__.py,sha256=4Q7AEDYxAx4li2ky69JxZUmRwGJPnKlZKfIWF3FFKJk,253
|
|
14
|
+
reportkit/components/layout/box.py,sha256=FgFz4QziTOJ-6EQTYCvgKRTMe5dnpjZUQ2aPNaChQ5k,206
|
|
15
|
+
reportkit/components/layout/column.py,sha256=DlBXOOTtsUc-YmI-ETW03iNMWsTA_mY9K3ib_FqcV3Y,306
|
|
16
|
+
reportkit/components/layout/divider.py,sha256=wpmiByPpM-bvRpM83l3ilwE90o1UhSxJ2utuhydrRGs,174
|
|
17
|
+
reportkit/components/layout/grid.py,sha256=4H6TY_W1dWTiOHcIOv6eg5FE10d6Isnz-hx8NrN459s,220
|
|
18
|
+
reportkit/components/layout/row.py,sha256=c50fZOwzWVv0b8kLqjtEJsyWsRgRx4xhIkQYESBGwMQ,295
|
|
19
|
+
reportkit/components/layout/section.py,sha256=1olJuyROb2JDBdrs3M0b6tWai6MjZ-ccZs7OImGlGW0,177
|
|
20
|
+
reportkit/components/layout/spacer.py,sha256=u4lmKWpgijxzbOxI_znBR7JOdnuuZPODwjbE0vOcfHI,210
|
|
21
|
+
reportkit/components/media/__init__.py,sha256=rwrUw-BuQbKh85qlxKpfFXxOymyW5J8DBlw2dyGF6as,80
|
|
22
|
+
reportkit/components/media/chart.py,sha256=wcX7nhF3pQjMCzduQ-1Xq2JNE_ZfHqKUNFGaPwfYtQQ,248
|
|
23
|
+
reportkit/components/media/image.py,sha256=bZgL4XHq2-Kcc8H8u1PqPLXAuzr-Dh-wwQ736CyYTeI,681
|
|
24
|
+
reportkit/components/pagination/__init__.py,sha256=Jt-Alue7wWD_l4JhiFGo3DtEOZ952eUUK9yyPU8SGKM,156
|
|
25
|
+
reportkit/components/pagination/page_break.py,sha256=cSk3MbDt_p7PV4C_B_aHp9G8xjU3LKGjriUHc9Yoe5A,205
|
|
26
|
+
reportkit/components/pagination/page_count.py,sha256=DJKGc_ngm3Xkmd7e_K1xUyn0n01zeSPl3ji_1H4iFkA,183
|
|
27
|
+
reportkit/components/pagination/page_number.py,sha256=AyljqnuRt8wqrApKSAE60QxgjNlcdOfXPwltsSyn2TE,556
|
|
28
|
+
reportkit/components/table/__init__.py,sha256=hTulLRRTnmSOixXyriMoakjAeGjdDMDXsRI-7HC_Gtk,216
|
|
29
|
+
reportkit/components/table/cell.py,sha256=GbI0kBcRM1J-klIrK-NE7ngoXXonof_TYCti95OcZVw,743
|
|
30
|
+
reportkit/components/table/column.py,sha256=4td-XK-reszW2EGOYg1rn2ScsnJzGbxa04IkxYgSa9A,723
|
|
31
|
+
reportkit/components/table/row.py,sha256=ogN4KxG8qOsvjCwTg35h2tnDU8UoD28zNkwVOCOVbA8,701
|
|
32
|
+
reportkit/components/table/style.py,sha256=JccMLn4ZRaJCfK9hiUfUHhgO70_0MxqowT0MCYFoWfs,422
|
|
33
|
+
reportkit/components/table/table.py,sha256=klgICliRkoonLa7XScuOO9MtlOYdNFBkcr2TZWDHKXM,830
|
|
34
|
+
reportkit/components/typography/__init__.py,sha256=GtiNl7QpKfEqGQCXLhoMCO-7UrdICUM8XzGcfzMXeyQ,171
|
|
35
|
+
reportkit/components/typography/heading.py,sha256=up1hjoc5xXQ7hTu4J2FeNCKUX1bcye4bG2LGQbl7GvI,218
|
|
36
|
+
reportkit/components/typography/rich_text.py,sha256=vh_ovHyGMzKGdaQlavqmyx1d3eRkjhnIJ1FVDNNzAHQ,726
|
|
37
|
+
reportkit/components/typography/text.py,sha256=H5_HIpBIJ0wQLj14RplrpLCWKb9SHOgyZHImJ_4OMZo,192
|
|
38
|
+
reportkit/components/typography/text_span.py,sha256=80gHxqttgYT6asa3cnuBccLhn03ey6l9Ua5sdX0U7ig,669
|
|
39
|
+
reportkit/core/__init__.py,sha256=W5eTAA1sqw1h2Pgg589qT90dklkpii9P5nSLnMUDqH4,104
|
|
40
|
+
reportkit/core/component.py,sha256=HyZnSa3PElv9SWhf4F1F_W33wnqz5mRAVAc7w7Xvba4,226
|
|
41
|
+
reportkit/core/container.py,sha256=jc16f7oDu7gDAxTjo69I9HMxYbIvuf3olVmDOkiGAcI,2059
|
|
42
|
+
reportkit/core/exceptions.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
|
+
reportkit/core/factory.py,sha256=MmOMqa3sULF5_UWAEKZGa1U8CqN4W_eipEUIrsA-JmI,2026
|
|
44
|
+
reportkit/core/registry.py,sha256=l4-kbMEIX1tJgVCSbMX4HIzV5R29D5HRFAuUg304DLQ,1419
|
|
45
|
+
reportkit/core/serializer.py,sha256=9-RMgha8lFn3gVK-YRVEOkdz9gZEnRkQVpMSLwn4mSg,2647
|
|
46
|
+
reportkit/exporters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
|
+
reportkit/exporters/base.py,sha256=wpZQXE_Lttxv8lw4ZFPheakfkTpiANB4yFIe_4VMyyA,436
|
|
48
|
+
reportkit/exporters/json.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
|
+
reportkit/exporters/registry.py,sha256=PkD_GIa62umSl7ClqwIxDCQgzEGZOEyPFtoDRwOWDIE,1431
|
|
50
|
+
reportkit/exporters/excel/__init__.py,sha256=aMc_s7buFVjbv6kkT2sKfwmQBUMY8zCvTOIJh0OX6Pg,296
|
|
51
|
+
reportkit/exporters/excel/exceptions.py,sha256=oKUsWWwDihA9KIC_Oqz8FGGxuYt79DK7xTRV68u4Pqw,122
|
|
52
|
+
reportkit/exporters/excel/exporter.py,sha256=2PLmBN8ehxk8oMjebs5HmgMyfck09mOd36KYjmjs2fM,3080
|
|
53
|
+
reportkit/exporters/excel/styles.py,sha256=OLMHOq-lVD7AoBJWK15tAeWoexroaocgLMhwmjTDCmQ,4367
|
|
54
|
+
reportkit/exporters/excel/renderers/__init__.py,sha256=LS4hgWP9LZ92LFZ5ifLcglarEvOXcazeMDqtMb4wero,1946
|
|
55
|
+
reportkit/exporters/excel/renderers/base.py,sha256=UPaRwQ3EdX14ZbSCtjrAyYWJlzBbRZanqGDxEVSu2EA,775
|
|
56
|
+
reportkit/exporters/excel/renderers/information.py,sha256=3CrULCYkglEWQ4QFldTVdNzE3kPM3VqcBa0yOqCRB9M,2253
|
|
57
|
+
reportkit/exporters/excel/renderers/media.py,sha256=Dtquaf8vUVEmXDwvaj9MB3cp6FNZAW8_eazikGHmAx4,1779
|
|
58
|
+
reportkit/exporters/excel/renderers/registry.py,sha256=N7kxxh7NiYipqYgVIpUpzPRO58WdRHAon-pOy9MYBAA,690
|
|
59
|
+
reportkit/exporters/excel/renderers/text.py,sha256=oFeOLGbwQIBBCq2yw8E7-FKHBsNb9wTkCceCZ-lPTbs,1441
|
|
60
|
+
reportkit/exporters/excel/renderers/layout/__init__.py,sha256=PnHHWHQ0egNBy-8Mi8qAIUCVkCMhci3gvq5k7H--BXw,514
|
|
61
|
+
reportkit/exporters/excel/renderers/layout/columns.py,sha256=sBmoPjpm9RoZdh1AWCz9z6BjtZLbji_eDu_pz_3G15A,1539
|
|
62
|
+
reportkit/exporters/excel/renderers/layout/data.py,sha256=NWxgi7lw04BpO_44K-QoU2Zd3EQsRruQLxN_dL6zxOY,1485
|
|
63
|
+
reportkit/exporters/excel/renderers/layout/page.py,sha256=adw_7B-Q8YGjPNupsb1MBpqIAcMwC9CmPNizmgsmKqs,629
|
|
64
|
+
reportkit/exporters/excel/renderers/layout/spacing.py,sha256=amxva6ghdCr2YchvCSW6oy4uYQ194uyVMUcI7FTmOwo,904
|
|
65
|
+
reportkit/exporters/excel/renderers/layout/stack.py,sha256=gpeF2iZQuDfca3Buopy0VhQ6Q8ojlo3RWYjI45_CTfs,419
|
|
66
|
+
reportkit/exporters/excel/renderers/table/__init__.py,sha256=eh7__vzXAwmeJjW9NjT7NV6QW-CzgTnQGstSfxy1rpQ,122
|
|
67
|
+
reportkit/exporters/excel/renderers/table/cells.py,sha256=UaOnOqVHSd1j98E6j1sYLBDPsjpXwgB6xuIbZGmkdGk,790
|
|
68
|
+
reportkit/exporters/excel/renderers/table/data.py,sha256=wYnlRz8FNlNftoOVv71UeEu8cIVquUiphFxqIvJ0ge8,2066
|
|
69
|
+
reportkit/exporters/excel/renderers/table/renderer.py,sha256=pRRmS41q71TYd_8v3OwJDpbEFvDW4KAbSmG2XPvqpi4,3678
|
|
70
|
+
reportkit/exporters/excel/renderers/table/widths.py,sha256=YJaJljVAsR0lgIZq0sjxOWvAPugGxGskUMsangcmx3c,1051
|
|
71
|
+
reportkit/exporters/excel/values/__init__.py,sha256=NcCgAiEaRw_d8f0hOeQXRDYztDqJmrfp-kZ7Y7heO7Y,229
|
|
72
|
+
reportkit/exporters/excel/values/cells.py,sha256=bESVfJ6Y4bhRKxh1ubDPKm02t41FpudzrTCBl8zgAgM,1893
|
|
73
|
+
reportkit/exporters/excel/values/components.py,sha256=qZFRibnOosAK_0WNZ1FJQ_NdP7QKIu-NNsbNbZvImXc,693
|
|
74
|
+
reportkit/exporters/excel/values/formats.py,sha256=TEuQjjpD-qfNwznU3T1rbNQRDYXDh2TIu9L0Tsdff-8,1293
|
|
75
|
+
reportkit/exporters/excel/values/numbers.py,sha256=hH2X7QgxPGcSxmWVtYyqKU5M2O53CjLk7sKRRoR5PIQ,876
|
|
76
|
+
reportkit/exporters/excel/workbook/__init__.py,sha256=frfD0gP9IPgo5TL2zu0N2_QGtrf88Gw3U86pDgBqyd4,166
|
|
77
|
+
reportkit/exporters/excel/workbook/data.py,sha256=NK-JtEP19oUbOD51C9LI5U93pNrakWmLgYeaG23CoY4,1622
|
|
78
|
+
reportkit/exporters/excel/workbook/formatted.py,sha256=WFcTkSE4GceIsUI6aOoXUALHWrY7aEkNRVd7Ue0zsCE,2500
|
|
79
|
+
reportkit/exporters/excel/workbook/styles.py,sha256=xDQqsZ9FeAiTkkGjndvc83T2-nsjgU6iYv23Uo3W_YA,1141
|
|
80
|
+
reportkit/exporters/excel/workbook/workbook.py,sha256=HOZbbfiCtE6WK2tr7sgDThqITm6MbZxeqpv7YkvtdYw,2323
|
|
81
|
+
reportkit/exporters/excel/worksheet/__init__.py,sha256=N_zsl2tp4t4Iw3bKxxDbh8m6YaSY5-jL879IoxiN1_o,161
|
|
82
|
+
reportkit/exporters/excel/worksheet/borders.py,sha256=AU6S9iMHMTnLAOVb-Og-FMmqOs0ofKDtXtBq0Y9oCWA,1252
|
|
83
|
+
reportkit/exporters/excel/worksheet/cells.py,sha256=k87YxndZ731YBTsaUlcu8g1HBPQE4gul8aiPAb04-_E,1580
|
|
84
|
+
reportkit/exporters/excel/worksheet/constants.py,sha256=zawALUPyBjBLCJsr49Tmht2_jmOAQKANshTAvxMgWhk,361
|
|
85
|
+
reportkit/exporters/excel/worksheet/data.py,sha256=ik0p5okuwLQDku_b7WH1y5wl4dUGSJNoeNfZwtjLrZs,1796
|
|
86
|
+
reportkit/exporters/excel/worksheet/formatted.py,sha256=Ii09mZobH-vAGss8hCCA2ylLR85DivQiHb1ITbrRRjw,8245
|
|
87
|
+
reportkit/exporters/excel/worksheet/page.py,sha256=CpDDYIctkI1M5YmSsBHHIwEzlAB4cloAZkZ2paVdh7A,914
|
|
88
|
+
reportkit/exporters/html/__init__.py,sha256=t-TNHvpq-bTXT1G2qieDETdWYDRBPEG1jpf97HGRW0c,149
|
|
89
|
+
reportkit/exporters/html/assets.py,sha256=_8Ol4LVDP2KvNGz9PBJPtcbB7Gba874DrzaYeEgEhcw,2273
|
|
90
|
+
reportkit/exporters/html/direction.py,sha256=Gch8SRkC48Sl_n4NoorqUnDgZYLehyxOi45XWqWijjs,472
|
|
91
|
+
reportkit/exporters/html/engine.py,sha256=x0r7jC1IIWcyyNYEeqaTgv3g2q3rmuuQJxN-W7z2Qbk,1438
|
|
92
|
+
reportkit/exporters/html/exporter.py,sha256=F7IOXAAe3tlHNrNURqGJxjHqCRMiPxL_udx-GCUb-3E,1277
|
|
93
|
+
reportkit/exporters/html/registry.py,sha256=2FErQFNbk1TkHDLcx3gljx75QhlF8RZWMIBfHKFV9Dg,1333
|
|
94
|
+
reportkit/exporters/html/styles.py,sha256=t_S3EkxMv87VSLAY-aEG1aBl4jK4rMs-z4Ua48tNCFE,6078
|
|
95
|
+
reportkit/exporters/html/templates.py,sha256=LWbKYghiFx_gUUqsmO95J6w644wDG0q_JwdUiVXybAk,1162
|
|
96
|
+
reportkit/exporters/html/page/__init__.py,sha256=BZBEPmsnZT30ffywOoeK0C-bGiMSvMLBvUMHnwwHxP8,71
|
|
97
|
+
reportkit/exporters/html/page/components.py,sha256=e3N_ha24m0wM2TaBhlzvdXKxDCD6uHQZglo5k9h6V9Y,1318
|
|
98
|
+
reportkit/exporters/html/page/margins.py,sha256=1WvDTYxlboq9pNYx6088HHZejwE1H0P2sffHR7qVtXM,838
|
|
99
|
+
reportkit/exporters/html/page/numbering.py,sha256=JbSfZxSCH1mWuiY5Y4oNKIm4fET9x5GYLCce3MpAQns,1251
|
|
100
|
+
reportkit/exporters/html/page/resolver.py,sha256=Dd5m_MP6UOq84-tZQar87KqukhT57YfVw7oosaQDQI0,1447
|
|
101
|
+
reportkit/exporters/html/page/running.py,sha256=hNtkZdCMgYBHJhf18vs-KxI8NvJZ_KUMlnEjbfV7VVU,859
|
|
102
|
+
reportkit/exporters/html/page/styles.py,sha256=wP4Li9qDYIG0ouF7YX5UokYWgW4B4jifywBdJ8NrwRc,755
|
|
103
|
+
reportkit/exporters/html/page/validator.py,sha256=DEz7HrQXSTmvcsxK1q15GqaRI64J-bx8HpaIparps-Q,2846
|
|
104
|
+
reportkit/exporters/html/renderers/__init__.py,sha256=yYBFZ5FRyNbV1QVUkGVSS9CpIsZKn4zKhORAGv2yWQ4,2004
|
|
105
|
+
reportkit/exporters/html/renderers/base.py,sha256=SfTnO6p8RMEmdKDlyMFreYOjy_9_rKyFWM785eUoWLQ,559
|
|
106
|
+
reportkit/exporters/html/renderers/document/__init__.py,sha256=7ZBfzB0qqqDxKZs6N96DAaN8wRT_EAwcenQj74exA8U,218
|
|
107
|
+
reportkit/exporters/html/renderers/document/footer.py,sha256=nWnFrbu3b1d-2xpSSPyAf1_b7aZ39K5Ll1KS0bTR0sM,662
|
|
108
|
+
reportkit/exporters/html/renderers/document/header.py,sha256=mt4z0f9zo_VADOMqHJtpzWP1qxrmA0Uv0YY3Yr4NmTc,662
|
|
109
|
+
reportkit/exporters/html/renderers/document/page.py,sha256=35VgeqvIBVK1JVg_emlWMg_gyLElsE5kIrAKYTTO5JI,563
|
|
110
|
+
reportkit/exporters/html/renderers/document/report.py,sha256=IoHmdGKDMkLwhNgV9_ZAzQ4vr1T4lU0Zf4g4yZneiJU,477
|
|
111
|
+
reportkit/exporters/html/renderers/information/__init__.py,sha256=ZcGq30nqm8qPnOCv2BZGekuO2HxQBsuQXbIpKBjVI1Q,132
|
|
112
|
+
reportkit/exporters/html/renderers/information/info_grid.py,sha256=pUFydYl5hItusUabKnKhdsRdkiQ9nwXowRyLjje_8Jw,940
|
|
113
|
+
reportkit/exporters/html/renderers/information/key_value.py,sha256=BVuXtxGIzYtT9AUSncwr3nbLe5IlSdDuqFd0M9s-Xck,688
|
|
114
|
+
reportkit/exporters/html/renderers/layout/__init__.py,sha256=_IKk1cA3GhuC8HyCqa9QXdvgQS4SnU4ZZDyMCkm16EY,365
|
|
115
|
+
reportkit/exporters/html/renderers/layout/box.py,sha256=pcIUrhSkjp-YMVwaRty8NRykFvcypzRL25fSWmab4ns,561
|
|
116
|
+
reportkit/exporters/html/renderers/layout/column.py,sha256=YoAKiti0O4rvxOn8w_pca7SNHBrx2jYwHf5xzaP8okA,1667
|
|
117
|
+
reportkit/exporters/html/renderers/layout/divider.py,sha256=IpPVitdAnRhz8NmRNN1Vawo6GzNgClR1yfr3SW17qSo,489
|
|
118
|
+
reportkit/exporters/html/renderers/layout/grid.py,sha256=zV2c6TeQHgqwCOjhnTVJWe7-_DBInfZ-Lu1lfikz3uw,1878
|
|
119
|
+
reportkit/exporters/html/renderers/layout/row.py,sha256=o-wgX4XH6NcKVdTgsCB2_VwVE8d73rPtyKXFYfRVKc0,1192
|
|
120
|
+
reportkit/exporters/html/renderers/layout/section.py,sha256=KLm2TfwiwQAsosa2IqgFux0GWGqxuqbCJxyXTikdRN0,562
|
|
121
|
+
reportkit/exporters/html/renderers/layout/spacer.py,sha256=nFDlihfjvE4WcwH1bW-wNdvF85to8zdIaoWeeBU5hII,737
|
|
122
|
+
reportkit/exporters/html/renderers/media/__init__.py,sha256=AFHiFikXM2UHXJ_bUJ-D7S8Pzpek2mXTM9G1VzJ9RaI,62
|
|
123
|
+
reportkit/exporters/html/renderers/media/image.py,sha256=gGymn9kVCmpsckYWkqKSJWNHMHAlwEH_OMCCw6a0pTU,594
|
|
124
|
+
reportkit/exporters/html/renderers/pagination/__init__.py,sha256=VxslSM9THgxmJTsoZCOVWm2wj5wM04-jyp7pzbT-93g,141
|
|
125
|
+
reportkit/exporters/html/renderers/pagination/page_break.py,sha256=tc5Husus2sc0ZHPTNv9ey4LCufZPwQJUUsysJmmutiM,375
|
|
126
|
+
reportkit/exporters/html/renderers/pagination/page_number.py,sha256=HiA6_awwQX4JLccEXn9p8nF2tvra0dGuJMkMS2R8ZZo,351
|
|
127
|
+
reportkit/exporters/html/renderers/table/__init__.py,sha256=MwvWPfy8bijwdH5FemRZ5eQi1Wbzqzt1eGKV1-z8b2U,119
|
|
128
|
+
reportkit/exporters/html/renderers/table/cell.py,sha256=_k42JW2V_UsaC37RuP4NyzQ7UHFnl_9KWhm3lgvMPls,2835
|
|
129
|
+
reportkit/exporters/html/renderers/table/table.py,sha256=Wj6VFwKnOdJ_lG2CMWyyMFRKYEaT3xFk55oG2W_K6PQ,3092
|
|
130
|
+
reportkit/exporters/html/renderers/typography/__init__.py,sha256=mAFbnORAH3fRRDZraP2V26zM7NkS9eRYfzh-fu8uZ88,175
|
|
131
|
+
reportkit/exporters/html/renderers/typography/heading.py,sha256=aI0stQxDjvAnW-mpeHFajVk2xlBYAB2nzjUKhG8T_Uk,633
|
|
132
|
+
reportkit/exporters/html/renderers/typography/rich_text.py,sha256=Sxjf5ciX4OUBKfDQhvtb-77iN40GRcQkABTNzM0GMKo,931
|
|
133
|
+
reportkit/exporters/html/renderers/typography/text.py,sha256=rZjiCshPdS94PDs2ecXTVE6ug63oD7hDfhRkq24N4kk,504
|
|
134
|
+
reportkit/exporters/html/static/base.css,sha256=BjrERRg1Wch3T98N9e01UOhVhs-hpai4RPcQRVjIN0Y,678
|
|
135
|
+
reportkit/exporters/html/static/information.css,sha256=mt-0bZWXfjFKML-rubI7MWNs4-Atk5GG5iRjbcwYz1Y,1485
|
|
136
|
+
reportkit/exporters/html/static/layout.css,sha256=aUB2gLn7uKkD1EF1dAJobUamwKpEsw0rgYDPDYGp6G0,1269
|
|
137
|
+
reportkit/exporters/html/static/media.css,sha256=bcggcfunNvbRPe7o-IaroRsQ4yQLVgEVw8RwdaVZDGY,141
|
|
138
|
+
reportkit/exporters/html/static/pdf.css,sha256=hI-Za6kJAcjSSpJcFKSQgNpRdRztmzjCMBfqP8FYW6o,5823
|
|
139
|
+
reportkit/exporters/html/static/print.css,sha256=_QTdmaN0uxS4uePdngt5Aba9Rkion3U3Ki0rMby05Hc,1398
|
|
140
|
+
reportkit/exporters/html/static/table.css,sha256=ehO5SxpFH4e6CgIRXiQm50ml2Fr1KwaKFlnrm_-QaZA,5430
|
|
141
|
+
reportkit/exporters/html/static/tokens.css,sha256=mod0rn6pODMqJpCzVhk6AhI-0Gyx1RpnFvLpMYtMNuk,2034
|
|
142
|
+
reportkit/exporters/html/static/typography.css,sha256=Egee0g9CJFECMsxxJ0SAptCcN5IEX3J4fMk-pHIMzwU,858
|
|
143
|
+
reportkit/exporters/html/templates/document.html,sha256=umxZvfcHlcSz2EieHCDcT92mCurnh7ZgcB0fFzMPKfI,317
|
|
144
|
+
reportkit/exporters/html/templates/components/document/footer.html,sha256=ZDPl95ah2Nux9w9lczyYb3LbFNh8wSUeyApTax4dD6o,114
|
|
145
|
+
reportkit/exporters/html/templates/components/document/header.html,sha256=Iy3AiNG7QByNo9FlIFoMm1fpom1cOxRS38rI10qd2J8,114
|
|
146
|
+
reportkit/exporters/html/templates/components/document/page.html,sha256=al9zgdWvJODt8zK-oym9tOkBUtoYL2tTp5dh1Y8pJeg,215
|
|
147
|
+
reportkit/exporters/html/templates/components/document/report.html,sha256=X_VCOrDEVY5pNjgpGe2qNKJO2CyvJBZ7jhA1gscwqLU,59
|
|
148
|
+
reportkit/exporters/html/templates/components/information/info_grid.html,sha256=fx4qFCsz6SaQlHKLm28uglYmtMXOMcIP7RKne_iTKTA,213
|
|
149
|
+
reportkit/exporters/html/templates/components/information/key_value.html,sha256=8WSunYq0KobebXcTsZodh8Ol2kE1m3hiGskzw4INfpw,615
|
|
150
|
+
reportkit/exporters/html/templates/components/layout/box.html,sha256=IS9ONHLjdsTa-SuyFFjq27dtzZnriv7hN3LENrh-20c,99
|
|
151
|
+
reportkit/exporters/html/templates/components/layout/column.html,sha256=5Z4dvWcySCax3RmEvnEm-QHaM4-fhQSGmxF2UVZyW7I,102
|
|
152
|
+
reportkit/exporters/html/templates/components/layout/divider.html,sha256=NzNsz3R65jcpn___JAteRpCWQI21uG1jXqanBa6i-78,69
|
|
153
|
+
reportkit/exporters/html/templates/components/layout/grid.html,sha256=psYxoynmsfhjHH9Uo8Ysip5GFeHgdI9vSHhyXD6tXck,152
|
|
154
|
+
reportkit/exporters/html/templates/components/layout/row.html,sha256=-O8KtQwlT1p2o-S2aS5WrxeMMOtSChcWtWidDlqnt_M,99
|
|
155
|
+
reportkit/exporters/html/templates/components/layout/section.html,sha256=_Aj-8TQ7VRsy3l1fMrJf6EJ7Ah1CAuVEjguwvrzbw3Q,111
|
|
156
|
+
reportkit/exporters/html/templates/components/layout/spacer.html,sha256=58RRT3TtQwNJs1HQqQalWvLPi-UqruCEqZutE0hJL34,118
|
|
157
|
+
reportkit/exporters/html/templates/components/media/image.html,sha256=Yn_uPaVTNdmkS6cS_Ad7XV2FWmr3597hTVxMEEqErLE,510
|
|
158
|
+
reportkit/exporters/html/templates/components/pagination/page_break.html,sha256=x6bByKxnx790jzjWR5S7d62F6EBIVU9fiS7S-6CHhd8,53
|
|
159
|
+
reportkit/exporters/html/templates/components/pagination/page_number.html,sha256=C2fayLAkLeiP1kFAFW8tslU-MayJFmY2iNPE0Ao1Cyo,83
|
|
160
|
+
reportkit/exporters/html/templates/components/table/cell.html,sha256=05H1w71ivf6m4gkTJSbEyzrOgZGF0PbiAznhXTxFWng,579
|
|
161
|
+
reportkit/exporters/html/templates/components/table/table.html,sha256=SJMpInzrOCYClI-W-Ezcs4P5zIUZYLxRtfEI5wf1BfE,1689
|
|
162
|
+
reportkit/exporters/html/templates/components/typography/heading.html,sha256=gDrMLBdrboYNPhku7cih6o5m2wbM1-4w4zKXSEbvmJk,170
|
|
163
|
+
reportkit/exporters/html/templates/components/typography/rich_text.html,sha256=-XyyGo_Zc3tGwglieYDzH3LhPoY8EmMYW4yG_vmz-jU,364
|
|
164
|
+
reportkit/exporters/html/templates/components/typography/text.html,sha256=Osa0rpqdJenCihvzaG6_JHGCwpupl00raESgXG6TFIk,91
|
|
165
|
+
reportkit/exporters/pdf/__init__.py,sha256=T6YSKKbr2YS7GIbH31H65RbJl2ECMLEqeyA0l2sdUDo,274
|
|
166
|
+
reportkit/exporters/pdf/conversion.py,sha256=_wRK81neyCBKMjuGVEIV-jbnwdYW97LjSsDBwt6MMjo,3404
|
|
167
|
+
reportkit/exporters/pdf/dependencies.py,sha256=vdsNCz8CflpI4ezHxqR95sO-1y6w0AoA_3l1DOWd4VQ,506
|
|
168
|
+
reportkit/exporters/pdf/exceptions.py,sha256=yjTNpi0CzBPlCKwVNaWBf0SGsteJZGPf8OHKv09DBNE,157
|
|
169
|
+
reportkit/exporters/pdf/exporter.py,sha256=tEZ6RuEPVOLj7LDp2UyWa8A0hzC4Y4QJxnU1QpV2eLw,595
|
|
170
|
+
reportkit/exporters/pdf/resources/__init__.py,sha256=0bWR9s9GlVIUtCvJ7LoCNVUHLGdOLOhnFVsb4CdqNn4,119
|
|
171
|
+
reportkit/exporters/pdf/resources/fetcher.py,sha256=PYw8GA24un_5DyLYMiDBAx3bPSOaw3YtJI-oaG-P5Cc,1255
|
|
172
|
+
reportkit/exporters/pdf/resources/policy.py,sha256=a7jw-C4HzPomG0C3tddzGsrPkStWqcNwz3qF3GLFUx4,2015
|
|
173
|
+
reportkit/exporters/word/__init__.py,sha256=jUJNLkkURqltpE3GkHvF3IlcUsYfkTV4jetG1ie5gFQ,259
|
|
174
|
+
reportkit/exporters/word/exceptions.py,sha256=MzM_61-SR13m3XJ6UG-5uPlaO6peK676GJY8vtF_arg,121
|
|
175
|
+
reportkit/exporters/word/exporter.py,sha256=C2AcVveyDwOGbtl1VZXTBbK4QiOjo20KVkVp4--dtyE,1176
|
|
176
|
+
reportkit/exporters/word/values.py,sha256=TFLpocOdbchPALWOMURgzKws6y4JCQ9VKe7Y2DJ2KfU,1373
|
|
177
|
+
reportkit/exporters/word/document/__init__.py,sha256=q1Jn94RIXX6FkbxK84pyqmKLioD6VBiNDd_4R1DdL2k,108
|
|
178
|
+
reportkit/exporters/word/document/document.py,sha256=mSqQlVuOQTwzg8cB-FzbWRbAYvaU6iKePlFtn1YhsHE,2851
|
|
179
|
+
reportkit/exporters/word/document/engine.py,sha256=tlY3mylKcTSFgjPQxrAqZWIdJC92YvnbQr6r1YCtIUk,2623
|
|
180
|
+
reportkit/exporters/word/renderers/__init__.py,sha256=jfFpLHjL2PJDQ4fUn0JC5JkgAFKCCEiGTSCJCgNnLnU,1383
|
|
181
|
+
reportkit/exporters/word/renderers/base.py,sha256=_mFXWokFWbG6lUDqNFhExNl7t5iS3tSLn8lYmQpluQU,1741
|
|
182
|
+
reportkit/exporters/word/renderers/information.py,sha256=dR1dpVa_dQ0Oi4EaVvxmkp5MQyWlICo_L5sMZ_cBw7w,1372
|
|
183
|
+
reportkit/exporters/word/renderers/media.py,sha256=49Zj7WH29OJBlELXSGIexXPoTYjHOp4R5X64duaxJA4,1802
|
|
184
|
+
reportkit/exporters/word/renderers/registry.py,sha256=bsXtMwPqsMCuh54F_wWadn-ALyja5zy4Sy9FGp5BU98,650
|
|
185
|
+
reportkit/exporters/word/renderers/text.py,sha256=Ub50xJBxb34QzCSYzStcT39ryCToOY3MpjLH-uBz-4g,1672
|
|
186
|
+
reportkit/exporters/word/renderers/layout/__init__.py,sha256=NuuguNEoRnkgYi0KHr_eLe8dSfrFef7WLpk7VBol4d0,443
|
|
187
|
+
reportkit/exporters/word/renderers/layout/columns.py,sha256=LrPLLQ4RZhzbAd-jkFo6QuQDXgz3uUa6Yhr17B4JNKE,2895
|
|
188
|
+
reportkit/exporters/word/renderers/layout/page.py,sha256=s2icsZAsB0EhjTU9IbTU68OWrI2ZKkkEMYmv0rrgAhc,1245
|
|
189
|
+
reportkit/exporters/word/renderers/layout/spacing.py,sha256=RQzrR7ueQdke7PlwOiY93N24LhcdekVuRPaiU48PDUU,1283
|
|
190
|
+
reportkit/exporters/word/renderers/layout/stack.py,sha256=nZ3cqGla7uR-VQrDU4OV3UZ-p3yT6EPk0u4PopjXsyo,1792
|
|
191
|
+
reportkit/exporters/word/renderers/table/__init__.py,sha256=q2L1mr8uecnZAqMoBd06u3riZpX168z8CzDeYSDSTlg,65
|
|
192
|
+
reportkit/exporters/word/renderers/table/cells.py,sha256=DE0sdhFiVV-groPvYyLgMB6FH_4Lzj-_rPq8ETPw_fI,1414
|
|
193
|
+
reportkit/exporters/word/renderers/table/renderer.py,sha256=jOJ1Ufl2QSTvJkWv7mseyly-9B8z3DMgo5INLZ6K8xc,5006
|
|
194
|
+
reportkit/exporters/word/renderers/table/widths.py,sha256=fUcZn3yH4GDqfXKPhQeoSWBo7fXDWK0lLwhg2D0Qqjs,396
|
|
195
|
+
reportkit/exporters/word/styles/__init__.py,sha256=kPmqSxIYLPhqLBxww65LZS0a9f9IIaYALTUs4GIA0As,92
|
|
196
|
+
reportkit/exporters/word/styles/text.py,sha256=xObWpXvxDgXOG3O2DCT9bLnG3YDOD4Xj3XaJV2hVbL4,3485
|
|
197
|
+
reportkit/exporters/word/styles/xml.py,sha256=IL12eR7HKN9HYPLFLMyvYoUYYaS-NBOgBWZNUCteP5E,6198
|
|
198
|
+
reportkit/formatting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
199
|
+
reportkit/formatting/cell.py,sha256=Ecbj6XfLUaG2R_2BZspnDsKeRsSRa41s5A-sB3eI2xg,285
|
|
200
|
+
reportkit/formatting/cells.py,sha256=R1jhXWi9MoRjhOZu83QJpj67kFXuTee0ZJUk8F4MP8M,1317
|
|
201
|
+
reportkit/formatting/values.py,sha256=pbYz0SXvR9lyQtYA-rLhLKBvWeAA7pUOaJWRCDRQbLk,3136
|
|
202
|
+
reportkit/rendering/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
203
|
+
reportkit/rendering/context.py,sha256=DGbDaACWY8fU6_pC-g25mdsmNld5WYar-HKI9SMpM08,1035
|
|
204
|
+
reportkit/rendering/table.py,sha256=kMEzl09rD43ex0yfof2iS_yFng7bVKcsZYAgw9NxA6A,2002
|
|
205
|
+
reportkit/rendering/tracks.py,sha256=nOc2s8dpoV40LbN5Xln29QH4HSbWKS-o2ia8UD_osV4,1880
|
|
206
|
+
reportkit/rendering/visitor.py,sha256=Mgc8RnXEHZLuoqnjJtcZsIpQ6cw-jiuqMhogZzlLL7w,1779
|
|
207
|
+
reportkit/styles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
208
|
+
reportkit/styles/borders.py,sha256=rkoEr6yoSrumpciAw4WohmxEXJtTMQUWrwGAcnvtnYw,366
|
|
209
|
+
reportkit/styles/style.py,sha256=Kr2Fc5iBXwW7twW4wIhhkvTHeKPR3JPHmTOwJVMAcQg,3571
|
|
210
|
+
reportkit/styles/table.py,sha256=poDJOSXoAssgNvQOG4o_FE76kRTsV645QTi9Vf3XwoY,2373
|
|
211
|
+
reportkit/styles/theme.py,sha256=OVDcmrLqLplrg-BKETZQPgDCEALb_l2i-_IA5J1-RKg,1237
|
|
212
|
+
reportkit/styles/tokens.py,sha256=-gRaT51zT8nqIEbNHGpk2ekMUMtytj-BEsNSWzm7Iyw,845
|
|
213
|
+
reportkit/validators/__init__.py,sha256=HDMFvOkJh49VsqvMzP7Tb8XmfJuLurI4tqZAzEQ8lPU,70
|
|
214
|
+
reportkit/validators/table/__init__.py,sha256=OLTpONHNui7V9jScP31l4x_zdfCZuvEBVPIfqHrTwxk,93
|
|
215
|
+
reportkit/validators/table/cell.py,sha256=exW-ZuEQOinrK1YX_X_a9P3jE03Im-Z6jGAYSQ6P7tE,1346
|
|
216
|
+
reportkit/validators/table/column.py,sha256=AdO0o_2uNgMkluKX4L03PM-rnSPI2ywUNbwjGpCoGqE,2602
|
|
217
|
+
reportkit/validators/table/row.py,sha256=VQx7hRUoEMgR6fPZfEkx1DBBr89jqiozEaL865-ajGo,1092
|
|
218
|
+
reportkit/validators/table/table.py,sha256=wBwRKSsaKlmD01JYrp_ILZF-BvR2u1i2BExbcwy5htQ,2262
|
|
219
|
+
pyreportkit-0.1.0.dist-info/METADATA,sha256=n2Dbwq7qMkdqeKR-aAHcwpUykDgkoaCYKunOcW_BpeE,7443
|
|
220
|
+
pyreportkit-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
221
|
+
pyreportkit-0.1.0.dist-info/top_level.txt,sha256=HsugeiQWMG9CMxk-zdRTKNmp1nOpiAi93An3NJjP2PM,10
|
|
222
|
+
pyreportkit-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abdullah Alaidrous
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
reportkit
|
reportkit/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from .document import Footer, Header, Page, Report
|
|
2
|
+
from .information import InfoGrid, KeyValue
|
|
3
|
+
from .layout import Box, Column, Divider, Grid, Row, Section, Spacer
|
|
4
|
+
from .media import Chart, Image
|
|
5
|
+
from .pagination import PageBreak, PageCount, PageNumber
|
|
6
|
+
from .table import Table, TableCell, TableColumn, TableRow, TableStyle
|
|
7
|
+
from .typography import Heading, RichText, Text, TextSpan
|
|
8
|
+
from ..core.registry import ComponentRegistry
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
COMPONENT_TYPES = {
|
|
12
|
+
"report": Report,
|
|
13
|
+
"page": Page,
|
|
14
|
+
"header": Header,
|
|
15
|
+
"footer": Footer,
|
|
16
|
+
"section": Section,
|
|
17
|
+
"box": Box,
|
|
18
|
+
"row": Row,
|
|
19
|
+
"column": Column,
|
|
20
|
+
"grid": Grid,
|
|
21
|
+
"spacer": Spacer,
|
|
22
|
+
"divider": Divider,
|
|
23
|
+
"text": Text,
|
|
24
|
+
"heading": Heading,
|
|
25
|
+
"rich_text": RichText,
|
|
26
|
+
"table": Table,
|
|
27
|
+
"key_value": KeyValue,
|
|
28
|
+
"info_grid": InfoGrid,
|
|
29
|
+
"image": Image,
|
|
30
|
+
"chart": Chart,
|
|
31
|
+
"page_break": PageBreak,
|
|
32
|
+
"page_number": PageNumber,
|
|
33
|
+
"page_count": PageCount,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
for name, component in COMPONENT_TYPES.items():
|
|
37
|
+
ComponentRegistry.register(name, component)
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"Box", "Chart", "Column", "Divider", "Footer", "Grid", "Header",
|
|
41
|
+
"Heading", "Image", "InfoGrid", "KeyValue", "Page", "PageBreak",
|
|
42
|
+
"PageCount", "PageNumber", "Report", "Row", "Section", "Spacer",
|
|
43
|
+
"RichText", "Table", "TableCell", "TableColumn", "TableRow", "TableStyle",
|
|
44
|
+
"Text", "TextSpan",
|
|
45
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from ...core.container import Container
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@dataclass(kw_only=True)
|
|
7
|
+
class Page(Container):
|
|
8
|
+
"""
|
|
9
|
+
Define a report page and its print settings; the HTML exporter validates them in HtmlPageValidator.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
size: str = "A4"
|
|
13
|
+
orientation: str = "portrait"
|
|
14
|
+
margin_top: str = "15mm"
|
|
15
|
+
margin_right: str = "15mm"
|
|
16
|
+
margin_bottom: str = "15mm"
|
|
17
|
+
margin_left: str = "15mm"
|
|
18
|
+
page_number_position: str = "bottom-right"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
|
|
3
|
+
from ...core.container import Container
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@dataclass(kw_only=True)
|
|
7
|
+
class InfoGrid(Container):
|
|
8
|
+
"""
|
|
9
|
+
Arrange information components in a grid.
|
|
10
|
+
"""
|
|
11
|
+
columns: int = 2
|
|
12
|
+
gap: int = 12
|
|
13
|
+
|
|
14
|
+
def __post_init__(self):
|
|
15
|
+
"""
|
|
16
|
+
Validate the grid configuration.
|
|
17
|
+
"""
|
|
18
|
+
super().__post_init__()
|
|
19
|
+
if isinstance(self.columns, bool) or not isinstance(self.columns, int) or self.columns < 1:
|
|
20
|
+
raise ValueError("Columns must be a positive integer.")
|
|
21
|
+
|
|
22
|
+
if isinstance(self.gap, bool) or not isinstance(self.gap, int) or self.gap < 0:
|
|
23
|
+
raise ValueError("Gap must be a non-negative integer.")
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from dataclasses import dataclass, field
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
from ...core.component import Component
|
|
5
|
+
from ...styles.style import Style
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(kw_only=True)
|
|
9
|
+
class KeyValue(Component):
|
|
10
|
+
"""
|
|
11
|
+
Represent a labeled value.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
label: str
|
|
15
|
+
value: Any = None
|
|
16
|
+
secondary_label: str | None = None
|
|
17
|
+
orientation: str = "horizontal"
|
|
18
|
+
label_style: Style = field(default_factory=Style)
|
|
19
|
+
value_style: Style = field(default_factory=Style)
|
|
20
|
+
|
|
21
|
+
def __post_init__(self):
|
|
22
|
+
"""
|
|
23
|
+
Validate the information field.
|
|
24
|
+
"""
|
|
25
|
+
if not isinstance(self.label, str):
|
|
26
|
+
raise TypeError("Label must be a string.")
|
|
27
|
+
if self.orientation not in {"horizontal", "vertical"}:
|
|
28
|
+
raise ValueError("Unsupported KeyValue orientation.")
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from .box import Box
|
|
2
|
+
from .column import Column
|
|
3
|
+
from .divider import Divider
|
|
4
|
+
from .grid import Grid
|
|
5
|
+
from .row import Row
|
|
6
|
+
from .section import Section
|
|
7
|
+
from .spacer import Spacer
|
|
8
|
+
|
|
9
|
+
__all__ = ["Box", "Column", "Divider", "Grid", "Row", "Section", "Spacer"]
|