Skip to main content

platen

In a printing press, the platen presses paper against inked type.

Platen is a Python package and command-line tool that presses structured data into documents.

Requirements

  • Python 3.14 or later.

Installation

To install Platen as a package to use in your own Python project, install platen from PyPI with your package manager of choice and read the user guide.

To use platen as a command-line tool, install it via pipx:

pipx install platen

Usage

platen --template FILE \
       --values   FILE \
       --out      FILE

platen --templates DIRECTORY \
       --values    FILE      \
       --out       DIRECTORY

--template and --templates are the same option, so either one can name a file or a directory.

For example, say you have values in values.yaml:

name: Bob

And a Jinja template, hello.md:

# Hello, {{ name }}!

Press the values into the template:

platen --template hello.md --values values.yaml --out build/hello.md

Platen creates build/hello.md:

# Hello, Bob!

To press every template in a directory, name that directory with --templates and the directory to press into with --out:

platen --templates templates --values values.yaml --out build

Contributing

See Contributing in the user guide to set up the project and run its checks.

Metadata

Release files for platen 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for platen 0.6.0
File Size Uploaded Provenance Actions
platen-0.6.0.tar.gz 63.3 kB With provenance Details for platen-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 80.4 kB

Release files / platen-0.6.0.tar.gz

Download URL platen-0.6.0.tar.gz
Size 63.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3760d4bd88b5a41380a946c8577b8083999929e77b83e3c7bc7f92a07d0b6c6c
BLAKE2b-256 checksum
How to use checksums
ac77f39bfdca0cf28972e5dcd1e86f718eda7bf6b618ff9cdc1ceef6777e6563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / platen-0.6.0-py3-none-any.whl

Download URL platen-0.6.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c64d3448d9c9410bec8b29c13e562b3ae57e88431ba5e5abd4e4fe3adb153c8
BLAKE2b-256 checksum
How to use checksums
6046ad3c8684e0c2b90363552381349c65585d8d8e8f6186341c8381038c563b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for platen 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for platen-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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