Skip to main content

ferroreport for Python

Reports in milliseconds from Python: a template and your data in, a PDF, an Excel workbook or a CSV out. An invoice takes about 2 ms, and a million rows take about 12 seconds and 16 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 16 MB.
  • max_pages= and timeout= (seconds) stop a report that grows past what you expect; 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.2.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.2.0
File Size Uploaded Provenance Actions
ferroreport-1.2.0.tar.gz 3.7 MB With provenance Details for ferroreport-1.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 49.7 MB

Release files / ferroreport-1.2.0.tar.gz

Download URL ferroreport-1.2.0.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
782ce41a9a2aa9fbf635addd342ca806d29f7b7df8083c4a4cca0319f9358f75
BLAKE2b-256 checksum
How to use checksums
7e032c6f721442d05fd60df50de84662b4bd06b0524deb06b282d88f2954ea0a
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-win_amd64.whl
Size 7.6 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
28a3972473de4e77b9775a143bfc65fd2e579d96798a7daa7b372168c6be65af
BLAKE2b-256 checksum
How to use checksums
3996260cac9c4bf792dbb3b36afadf0a3f333cffd8ed8384cddaa05f8fc6c1fc
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 8.0 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
cfcbd65d41b79c2d29864818bce0cfe59036792e63acdd1b31df41207cf9d1bf
BLAKE2b-256 checksum
How to use checksums
690cebde38eac9da47009b5f84eaf192aa036e2fc8e142720b55ba32e5cf549c
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.8 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
112a3c21b796cd09aaeb6b29ff1f222030d1788c9d748983a354bf3a30f0ba84
BLAKE2b-256 checksum
How to use checksums
bc6b2251862e2f2d58e4d999493232e47e5f4d6e4b46f7bde74294e6635a3751
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 7.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f8efa366277bbfb09dc7704a95672a58212c7fb7010bd093aab2e120d6ef0a49
BLAKE2b-256 checksum
How to use checksums
4a0849950949015c0c5e02fd715087216958c585d5e2f67637aaabe221724775
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 7.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a232cfaa647ad61649b4d325289e24d8d12a80ab8cced8adca55bea380ceb2f1
BLAKE2b-256 checksum
How to use checksums
5b00c41af86c1e8eb5d78112ee0f58c64ce51f011d8aa604133355acdae06e01
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 25, 2026.

Transparency log

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

Download URL ferroreport-1.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 7.6 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0021fa6cecd74410b2af0de528bd70f671b9542b0377b81b25cc2c3c2ab8a0dd
BLAKE2b-256 checksum
How to use checksums
cc417c36df462ed7f7f8e52e3456a05444e40b6ad1e88a6928848c997e5b8dac
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 25, 2026.

Transparency log

Security for ferroreport 1.2.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.2.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 25, 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