Skip to main content

Package Build Code Climate Issue Count Test Coverage

bericht

Incremental HTML to PDF converter with support for extremely large documents. Bericht does not hold the HTML or the PDF in memory as it generates PDF pages; instead, it requires you to pass a generator which produces HTML snippets and bericht gives you a PDF stream iterator. As you iterate the PDF stream bericht will parse just enough HTML to produce a single page and return one page at a time which you can either write to a file, send over http or do whatever you need.

Main features:

  • Quickly and efficiently generate on-demand PDFs from databases or other data sources.

  • Use familiar HTML and CSS to define your PDF layout.

  • Re-use the same code to produce HTML and PDF based reports for your users.

  • Ability to generate extremely large PDF files without storing any of the parts (input or output) in memory.

  • Many CSS extensions specifically for print/page related formatting:

    • @page:nth-child(an+b): at-rule to target/style individual pages (non-standard CSS).

    • @page { letterhead-page: 1; }: ability to apply specific pages from another PDF as a watermark/letterhead in your newly generated PDF (the other PDF must be passed as argument to bericht generator to be able to extract pages from it using letterhead-page CSS attribute).

    • thead:nth-child(an+b) and tfoot:nth-child(an+b): bericht can repeat table headers/footers on subsequent pages when the table does not fit on one page, this rule allows you to style those rows differently depending on what page they are on (non-standard CSS).

0.1.04

  • Added missing files in MANIFEST.in

0.1.03

  • Various bug fixes and refactoring.

0.1.02

  • Table cell rendering fix.

0.1.01

  • Major rewrite of parser and drawing code to be more forgiving for broken HTML.

Metadata

Release files for bericht 0.1.4

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.1.4
File Size Uploaded Provenance Actions
bericht-0.1.4.tar.gz 23.4 kB Without provenance Details for bericht-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 51.8 kB

Release files / bericht-0.1.4.tar.gz

Download URL bericht-0.1.4.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8e27bf4f89d545764902e13415e7390a0fc29cea782df92b19d4c6a9a8c30a45
BLAKE2b-256 checksum
How to use checksums
2c3a21c89bd7b0a0e10377fd00211511050a59026c7e4a3f35f7a5b9cd650f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL bericht-0.1.4-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86261a9ad2058e6959a2e807f91a4cca0a76ba044071b398203606a44445b270
BLAKE2b-256 checksum
How to use checksums
ead61ea955524330bd9051f7b0b88c761bcb4bf198296eaa204282fb5ed9fcf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bericht 0.1.4

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