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.01

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

Metadata

Release files for bericht 0.1.1

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.1
File Size Uploaded Provenance Actions
bericht-0.1.1.tar.gz 21.0 kB Without provenance Details for bericht-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 46.7 kB

Release files / bericht-0.1.1.tar.gz

Download URL bericht-0.1.1.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d7f421a73de97cb2b59fb119c35c32c514d6c125bba5492f2bebb4b54b3be365
BLAKE2b-256 checksum
How to use checksums
f8dbb1415ee116a0a51fbd8e4b133714b1eedbf7519984449c218e428061c493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL bericht-0.1.1-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18aac102e6ac7477fcbe944fec33a1fd24114757d9f271e439917ca8605a5370
BLAKE2b-256 checksum
How to use checksums
776057b0eea92dd00acb6cd797bcc9dbc153b4137b4635838ad3d5704fa30f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bericht 0.1.1

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