Skip to main content

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


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.40.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

q2report-0.1.40-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file q2report-0.1.40.tar.gz.

File metadata

  • Download URL: q2report-0.1.40.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.7 Windows/10

File hashes

Hashes for q2report-0.1.40.tar.gz
Algorithm Hash digest
SHA256 27f40a6b3a0d1ab10d760e8ed64d9ad2ba04717d6384fea827a6cec44fa60464
MD5 7c1635fbb7603a8c7a95db65d6f4e85b
BLAKE2b-256 e4398fdc24a7ed9215b10e39bf05f65348596ae061ca79f832fe98d668a8325e

See more details on using hashes here.

File details

Details for the file q2report-0.1.40-py3-none-any.whl.

File metadata

  • Download URL: q2report-0.1.40-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.7 Windows/10

File hashes

Hashes for q2report-0.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 01dc2de5904d89e4b4bb075d2ea408c6af84adc128a2b03c9587f0c0b531c305
MD5 1feb76f663fc817385fb46b8ef500327
BLAKE2b-256 c4076f04b3fc0b610f168fa18977e4b24d7e077e85af9dcb59d5c2d15dd198f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page