Skip to main content

bericht

Improved tabular report generation with ReportLab.

to test things real quick:

from reportlab.platypus.doctemplate import SimpleDocTemplate
from reportlab.lib.pagesizes import A4
from reportlab.lib.styles import getSampleStyleSheet

from bericht.table import TableBuilder, Span

rlstyle = getSampleStyleSheet()['BodyText']

builder = TableBuilder(rlstyle)

builder.row('this is a test1', 'second cell1', 'ending cell1')
builder.row('this is a test', 'second cell', 'ending cell', 'forth cell')
builder.row('this is a test', Span.COL, 'forth cell')

doc = SimpleDocTemplate('test.pdf', pagesize=A4)
doc.build([builder.table])

you should find a test.pdf file in the location where you started python

0.0.13

  • Bug fix: Column measurement wasn’t including header/footer rows.

0.0.12

  • Replaced <bericht-col> with multi-pass column measurement.

0.0.11

  • Bug fix: Measuring column width with <bericht-col> includes padding now.

0.0.10

  • Bug fix: Cell properly renders multiple paragraphs.

0.0.9

  • Ignore letterhead-page style setting if no letterhead is available.

0.0.8

  • CSS supports mm, cm and inch dimensions.

0.0.7

  • Proper handling of XObject Resources in letterheads.

0.0.6

  • Proper handling of /DescendantFonts when creating letterhead XObject.

0.0.5

  • Template bug fix related to compression.

0.0.4

  • Added page-break-before CSS property.

0.0.3

  • Added missing dependencies.

0.0.2

  • Bug fixes and improvements.

0.0.1

  • Initial release.

Metadata

Release files for bericht 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bericht 0.0.13
File Size Uploaded Provenance Actions
bericht-0.0.13.tar.gz 19.8 kB Without provenance Details for bericht-0.0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bericht 0.0.13
File Interpreter ABI Platform Actions
bericht-0.0.13-py3-none-any.whl Python 3 none any Details for bericht-0.0.13-py3-none-any.whl

Total release size: 55.2 kB

Release files / bericht-0.0.13.tar.gz

Download URL bericht-0.0.13.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
368fc62fdbec28ec62ccf7e35cfe8e3b764a50098943cd9c91fae61f2f0b1457
BLAKE2b-256 checksum
How to use checksums
0f2d8b011d76e16a731ddf9a1808bc319799cbcbef9cd7606059ecb6a739d2f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bericht-0.0.13-py3-none-any.whl

Download URL bericht-0.0.13-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6c74d87bb35b83bd5f51cf3d2cd76d238a37274af75d4a4825e9c6ef02294a9
BLAKE2b-256 checksum
How to use checksums
7e098d2d0d04be467151e6461d36cda4981485f5c09fa3bde468c8398b473a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bericht 0.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page