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

  • Table rendering fix.

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

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

Built distribution (wheel)

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

Total release size: 51.8 kB

Release files / bericht-0.1.5.tar.gz

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

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

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

Security for bericht 0.1.5

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