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.35.tar.gz (25.5 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.35-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2report-0.1.35.tar.gz
  • Upload date:
  • Size: 25.5 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.35.tar.gz
Algorithm Hash digest
SHA256 de6109f9071d6c757cd663b2349621cd04c25439633a27db6234973a5056c1bc
MD5 ba18032a58a5c086a933e5d2d5b50d20
BLAKE2b-256 8dbc9befdfab398c5372ab2b38cf98d069c91773c29266e70708e156f5910573

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2report-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 32.5 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.35-py3-none-any.whl
Algorithm Hash digest
SHA256 b84a313228d5b37b2200edd714cc2bc9c464751aacd3323b08a249aa8e74e0ac
MD5 1201ba7143cee167a5907510ff910b4c
BLAKE2b-256 471cf5c29a95875fc0574f597ef620d9b30620b9cf30f7b8b48d21aebf133cfd

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