Caxton
Declarative Python library for describing and generating documents from application data. Users define the document structure and semantics, while renderers handle output formats and backend-specific details
Stable v1.0.0 will be released when we decide, that no longer want to freely change the public DSL |
|---|
from caxton import render, sheet, spreadsheet, table, text, write
rows = [{"name": "Ada Lovelace"}, {"name": "Grace Hopper"}]
report = spreadsheet(
sheet(
"People",
table(
source=rows,
columns=(text(source="name", title="Name"),),
),
),
)
result = render(report)
write(report, "people.xlsx")
More examples are available in the example projects
The project is licensed under the MIT
Installation
Install Caxton with pip:
pip install caxton
No additional setup is required
Metadata
Release files for caxton 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| caxton-0.3.0.tar.gz | 192.9 kB | With provenance | Details for caxton-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| caxton-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for caxton-0.3.0-py3-none-any.whl |
Total release size: 374.9 kB
Release files / caxton-0.3.0.tar.gz
| Download URL | caxton-0.3.0.tar.gz |
|---|---|
| Size | 192.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
952071ebb6789f4cc6a029f2b220ba040ecc45e9b936423d1909ed3107301d05
|
|
BLAKE2b-256 checksum How to use checksums |
1beaf40bd1f8b53d943abc4ffd20d85497e7878909d99f5149abe73099ff849c
|
| 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 Sep 16, 2026.
Transparency logRelease files / caxton-0.3.0-py3-none-any.whl
| Download URL | caxton-0.3.0-py3-none-any.whl |
|---|---|
| Size | 182.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
802b73b607ce23d49eff3b075aefabc2921129f9e096c5b04d9d0f20e1af6a8c
|
|
BLAKE2b-256 checksum How to use checksums |
8f10dfdf14f1bd225fcc331b6026a9f146b67b1074ea173d187c34556adb2579
|
| 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 Sep 16, 2026.
Transparency logSecurity for caxton 0.3.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.
Attestation for caxton-0.3.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 Sep 16, 2026.
Transparency logA 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.