Skip to main content

Document manufacturer

Project description

Docma -- Document Manufacturing for Fun and Profit

Docma is a document generator that can assemble and compose PDF and HTML documents from document templates with dynamic, data driven content.

PyPI version Python versions PyPI - Format GitHub License Code style: black

Genesis

Docma was developed at Origin Energy as part of the Jindabyne initiative. While not part of our core IP, it proved valuable internally, and we're sharing it in the hope it's useful to others.

Kudos to Origin for fostering a culture that empowers its people to build complex technology solutions in-house.

Jin Gizmo Home

Features

Docma features include:

  • Document content can be defined in any combination of HTML and PDF.

  • Content can also be defined in other formats that are compiled to HTML (e.g. Markdown, CSV).

  • Dynamic content preparation (conditionals, loops, transformation etc.) based on structured data parameters fed to the rendering process at run-time.

  • Composition of multiple source documents into a single output document.

  • Conditional inclusion of component documents based on parameter based conditions evaluated at run-time.

  • Deep schema validation of structured data parameters at run-time.

  • Watermarking / stamping of PDF output.

  • Support for charts via the Vega-lite specification with multiple data sources, including live database connections.

  • Readily extensible to add new data sources and content types.

Installation and Usage

See the user guide for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docma-2.2.0.tar.gz (76.6 kB view details)

Uploaded Source

File details

Details for the file docma-2.2.0.tar.gz.

File metadata

  • Download URL: docma-2.2.0.tar.gz
  • Upload date:
  • Size: 76.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for docma-2.2.0.tar.gz
Algorithm Hash digest
SHA256 19aecd76fe6aa5d217eed02e2032c2872bce1a4991911044422f858ebdb3434a
MD5 3f2a599cecccb4824d409edd137a3e55
BLAKE2b-256 7559cf0c51722434de64d1c9f957412e7f7ccbf4679a2a603e09db6cdb0cd9a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page