No project description provided
Project description
The light Python report builder.
Converts data into formatted text (HTML, DOCX, XLSX):
data = {'data_source1':[{'col1': 'value row1', ....}, ...],
'data_source2':[{'col_1': 'valie_row1', ....}, ...],
}
Available formatting (styling options):
"style": {
"font-family": "Arial",
"font-size": "10pt",
"font-weight": "normal",
"border-width": "0 0 0 0",
"padding": "0.05cm 0.05cm 0.05cm 0.05cm",
"text-align": "left",
"vertical-align": "top"
}
Concept
The report definition consists of sections (Report, Pages, Columns, Rows, Cells).
Each section inherits style from previous and may override some styling options.
see examples in folder test_data
Report: # contains basic style
Pages: # page & margins sizes
Columns: # columns widths - exact, % or autowidth
Rows: # rows heights - auto, exact, min or max
# can be linked to data and then have header, footer and grouping subsections
#
Cells # contains simple text and data links - {col1}
# and aggregate functions - {sum:coll}
# support html formatting with <b> <i> <u> <br>
# cells may be merged (span)
Rows:
Cells
....
Columns:
....
Pages:
....
....
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
q2report-0.1.21.tar.gz
(17.2 kB
view hashes)
Built Distribution
q2report-0.1.21-py3-none-any.whl
(21.5 kB
view hashes)
Close
Hashes for q2report-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc598f71905a0fd29bdcbdd45692a7e3a9f7f90ce3e294260e52d34c3b589e51 |
|
MD5 | 368be545f20d0fc96c565b2d38c7e286 |
|
BLAKE2b-256 | cd7bffb39c4646a11faefff51b4bda1675e258bedaa513ec52f4997acdaaf17f |