forktex-documents

Generate documents from structured data

Invoices, contracts and reports as HTML and PDF from one typed record. Document types belong to you; the library brings the blocks, the renderer and the rules a document must meet.

Stage
Stable: semantic versioning
Licence
AGPL-3.0-or-later, or a commercial licence from FORKTEX S.R.L.

What it does

You declare your own document types; totals and flags are computed fields, so a record cannot disagree with itself.

Typed blocks, from paragraphs and clauses to tables, totals, signatures and party cards, held as data.

Mandates: fields an authority requires, with the authority, the reference and the reason, checked before a document is issued.

No defaults for a country: you declare the jurisdiction's formats and currency, and your theme's colours and fonts.

Technologies

ForkTex Documents

Contribute

The source and the issues are on GitHub; every release is on PyPI.