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 14 seconds and 13 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
250× faster than JasperReports from a cold start and 3 to 6× 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)
datais a list of dicts (or objects);datetime,date,Decimalandbytes(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 withresources={"logo.png": b"...", "lines.jrxml": "..."}. A subreport namedlines.jasperis read fromlines.jrxml; compiled.jasperfiles are never loaded. format="xlsx"returns an Excel workbook,format="docx"a Word document,format="ods"andformat="odt"OpenDocument files (LibreOffice), andformat="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.datacan 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,.ods,.odt,.csv,.html). It returns{"pages": ..., "rows": ...}.- For rows that do not fit in memory, give
data_file="rows.jsonl"instead ofdata: a JSON array or one object per line, read as the report needs it. A million rows render in about 13 MB. max_pages=andtimeout=(seconds) stop a report that grows past what you expect; set them when templates or data come from other people.csv_safe=Trueguards CSV against spreadsheet formulas in the data, andxlsx_numbers=Truewrites 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.1.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 |
|---|---|---|---|---|
| ferroreport-1.1.0.tar.gz | 3.6 MB | With provenance | Details for ferroreport-1.1.0.tar.gz |
Built distributions (wheels)
Total release size: 44.6 MB
Release files / ferroreport-1.1.0.tar.gz
| Download URL | ferroreport-1.1.0.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b98913a03d4ef2bf40f4a0dffdc9efd624e17a88076ac8ae867411b40a3e7dab
|
|
BLAKE2b-256 checksum How to use checksums |
94d6f0f08b6fcf06690f1f692d2ad1944c2685ede7a3a85b4a6548b3d13fb2e9
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-win_amd64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f024862fff1bb013f07ce4560507725739f584e1bc504bed5f97a352337673c6
|
|
BLAKE2b-256 checksum How to use checksums |
7233207a9d031270b7c41e0d6ac09057b9a1f36d737604f122fd0dc66ce4e04f
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 7.1 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9c790620a38d8e0f3e8d8b7ab1e527b59dce4d18740263ec265d30caf9f82062
|
|
BLAKE2b-256 checksum How to use checksums |
f00bd0d5db7ac4deb44ecf062b9819e92c7582741fb5b69574093a7ab327af70
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 6.9 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9b0e880e3c835f63bd1ff26e76576238fc4bc953f091307682ac873b38e4ec21
|
|
BLAKE2b-256 checksum How to use checksums |
76f31deac254a25244e5d905c76c15e37f30ef6f31c37aecc5542385b54e2c27
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
dab7db6992827a5ad8b6c2458ec5773b0fb5d59f9585785e374fdaa519fb1861
|
|
BLAKE2b-256 checksum How to use checksums |
7d1edb5a25903afc77b7194e5455032fcf9dd70df83fb0c8514a7ae38a234c61
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.6 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5929814c39dad92309335b14e441d27346a4f69b161644a15db6631132e6e919
|
|
BLAKE2b-256 checksum How to use checksums |
98a328087ce537005d078bbb9a8a3a7b53fa617242bb214be7146e5523303da7
|
| 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 24, 2026.
Transparency logRelease files / ferroreport-1.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | ferroreport-1.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
21e440a70731038499c276f9dd8895deceb97f17372600b678fe7af6f1c37a2f
|
|
BLAKE2b-256 checksum How to use checksums |
5957a4acc2082017a7fa09aba75526be772713eef81f49520564a9eee3b6338f
|
| 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 24, 2026.
Transparency logSecurity for ferroreport 1.1.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.
Attestation for ferroreport-1.1.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 24, 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.