Skip to main content

ferroreport for Python

Reports in milliseconds from Python: a template and your data in, a PDF, an Excel workbook, a Word document, a PowerPoint presentation, an OpenDocument file (ODS, ODT), a CSV or an HTML preview out. An invoice takes about 3 ms, and a million rows take about 18 seconds and 19 MB of memory, because rows are read as they are needed and pages are written as they are finished.

It reads JasperReports .jrxml templates and gives the same output, verified pixel by pixel against JasperReports 6.20, with no JVM and no Java bridge: the engine is native Rust, about 200× faster than JasperReports from a cold start and 3 to 5× faster than a warm JVM (benchmarks). Templates cannot run code, so they are safe to accept from users.

pip install ferroreport
import ferroreport

pdf = ferroreport.render(
    "invoice.jrxml",                                   # path or JRXML source text
    data=[{"item": "Cemento Portland", "qty": 10, "price": 395}],
    params={"CUSTOMER": "Distribuidora Caribe"},
    locale="es_DO",
)
with open("invoice.pdf", "wb") as f:
    f.write(pdf)
  • data is a list of dicts (or objects); datetime, date, Decimal and bytes (images) are converted to the classes the template declares. Nested lists feed subreports.
  • Images and subreports are found next to the template; add resource_dirs=[...], or pass them in memory with resources={"logo.png": b"...", "lines.jrxml": "..."}. A subreport named lines.jasper is read from lines.jrxml; compiled .jasper files are never loaded.
  • format="xlsx" returns an Excel workbook, format="docx" a Word document, format="pptx" a PowerPoint presentation (a slide per page), format="ods" and format="odt" OpenDocument files (LibreOffice), and format="csv" CSV text (UTF-8 bytes), laid out like JasperReports' exporters; format="html" returns a web page that looks like the PDF, for previews in a browser.
  • data can also be any iterator of rows (a generator, a database cursor): it is read one row at a time, so the rows are never all in memory.
  • ferroreport.render_to_file(template, "out.pdf", data, params) writes the file as it is made (PDF and CSV pages go to disk as they are finished); the format follows the extension (.pdf, .xlsx, .docx, .pptx, .ods, .odt, .csv, .html). It returns {"pages": ..., "rows": ...}.
  • For rows that do not fit in memory, give data_file="rows.jsonl" instead of data: a JSON array or one object per line, read as the report needs it. A million rows render in about 19 MB.
  • max_pages=, max_rows= and timeout= (seconds) stop a report that grows past what you expect (max_rows= counts the rows of subreports and datasets too, and stops a summary over a million rows that max_pages= would not); set them when templates or data come from other people. csv_safe=True guards CSV against spreadsheet formulas in the data, and xlsx_numbers=True writes numbers as numbers (Excel and ODS).
  • ferroreport.inspect(template) returns the template's parameters, fields and the features the engine does not support yet.
  • Rendering releases the GIL, so it runs in parallel from threads (Django, FastAPI, Celery).

Errors raise ferroreport.FerroreportError.

See the project README for supported JasperReports features, benchmarks and other languages.

Metadata

Release files for ferroreport 1.4.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 ferroreport 1.4.0
File Size Uploaded Provenance Actions
ferroreport-1.4.0.tar.gz 3.8 MB With provenance Details for ferroreport-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ferroreport 1.4.0
File Actions
ferroreport-1.4.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for ferroreport-1.4.0-cp39-abi3-win_amd64.whl
ferroreport-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for ferroreport-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl
ferroreport-1.4.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for ferroreport-1.4.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ferroreport-1.4.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for ferroreport-1.4.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ferroreport-1.4.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for ferroreport-1.4.0-cp39-abi3-macosx_11_0_arm64.whl
ferroreport-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for ferroreport-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 50.3 MB

Release files / ferroreport-1.4.0.tar.gz

Download URL ferroreport-1.4.0.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
e104b94ea888e57bdfd7bbe898f1b3cbc7de8379a4f19bc1a9394b7b4e2abc66
BLAKE2b-256 checksum
How to use checksums
562a39d01ee299a418050e05c9613f3ca77e1f7bddb613347a0b092f97d34950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-win_amd64.whl

Download URL ferroreport-1.4.0-cp39-abi3-win_amd64.whl
Size 7.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4289b1a5c11810fe12a36449fc4f82b52baf7cbe8257b73f19605ad109ed6ac1
BLAKE2b-256 checksum
How to use checksums
71acd7bc19388bd824555b4339011340f9178728e5db11565cc84a850d9cd83e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL ferroreport-1.4.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 8.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
056f96b12f6de76eec73e26270c8be6aca4f6f7b2675821b1fd1856336ea83a6
BLAKE2b-256 checksum
How to use checksums
25eda11bfd892c560512c7b7de94e49828d5807cf25d2eac18f4b58e2ce4a78d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ferroreport-1.4.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4236e573a225e4643ce5cdf73e23d0a622f92922aae3a8308841e4958acd0afb
BLAKE2b-256 checksum
How to use checksums
d8c9d9adca3065e2043b3860bf793590760ecda54ef5dc1536aa4c559613b41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ferroreport-1.4.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.7 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
e0e527460fa1284e96876ed9d207c6648bb56a0e756b21e1faf793adad0016a8
BLAKE2b-256 checksum
How to use checksums
9564af35c04d4d4745905a63968df84eb2aeed5283abae379171566532e92df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL ferroreport-1.4.0-cp39-abi3-macosx_11_0_arm64.whl
Size 7.5 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a7e18932fa32f2a282628ca48734237c0aa4dbac0e4feb56b57cdf209ddab273
BLAKE2b-256 checksum
How to use checksums
760e988bc947656c37dd704fc9ffe05bb86a5af400355a67bff61d4d928e15de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Release files / ferroreport-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL ferroreport-1.4.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 7.7 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e50556b5980b798732fb2284900b31d26d197dbebae7ed0b929b8bb8c4ac3b02
BLAKE2b-256 checksum
How to use checksums
f3298cac9005d5cbb04bed2f0a096b9a7c41a1adadc038804d478c884d42bfa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 28, 2026.

Transparency log

Security for ferroreport 1.4.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

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for ferroreport-1.4.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 28, 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