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 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)
  • 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 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, .csv). 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 13 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.
  • 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.0.2

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.0.2
File Size Uploaded Provenance Actions
ferroreport-1.0.2.tar.gz 3.6 MB With provenance Details for ferroreport-1.0.2.tar.gz

Built distributions (wheels)

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

Total release size: 43.0 MB

Release files / ferroreport-1.0.2.tar.gz

Download URL ferroreport-1.0.2.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
45a936efa7ba6879675eb0cdf890e99a5bbdb106439dd4c2f36afbfc87402c2b
BLAKE2b-256 checksum
How to use checksums
a2f7168101549af84823279d27040b9f1a4cbb6ae728096a01d2da4ff1c7ab36
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-win_amd64.whl
Size 6.5 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c8c1ea09a2593d984b6f85d64d00c8ae809b7d05da3968fea69866ed99b2f1eb
BLAKE2b-256 checksum
How to use checksums
f26cd43f5292ed8d7c5f4d268a0a5b11c07ab01e48a1061b70f305de9f0f233d
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-musllinux_1_2_x86_64.whl
Size 6.9 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ad943a2947e824b3109f880c6fb53230dfa5e1560735bb8f515bebe12215ee65
BLAKE2b-256 checksum
How to use checksums
c2777e5e20782f4cd0cb028bb9df567e659f786c6d80b92a8903277c97a2e9a3
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
644a3de66a853f2434c5af08da7b86122f9777e95e65b5c614cd7d7846e97ae0
BLAKE2b-256 checksum
How to use checksums
f114281e7d3d5f35edf77e85617bc89a78264d6c609aac845b4cd928c293eae0
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.5 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0e5dcbe6da9b645c84de2011e993dd258fd08e2ae284d7af2714c1bc1b1716f1
BLAKE2b-256 checksum
How to use checksums
2fc96e3d2a36e40cd9db3e1ae9f9c30cd22249bafb4c712753be55234ab265f9
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-macosx_11_0_arm64.whl
Size 6.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
449200784c533185f3775455dd7bd412d2c98704e1a36536830ad3661a622f73
BLAKE2b-256 checksum
How to use checksums
93487215a01dc85f466d46154744b88a81ffd0ad2682524d704c303cbf8a4b23
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 log

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

Download URL ferroreport-1.0.2-cp39-abi3-macosx_10_12_x86_64.whl
Size 6.5 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a45024cbc6fe87ea2b02f8b155857576ed4be4c52f7e26bd734e4e6807730a6c
BLAKE2b-256 checksum
How to use checksums
0e714cdaeaf05f009f4ca174be8f8bb12bd7148b3a6d60be0ac1ba87a365bbe1
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 log

Security for ferroreport 1.0.2

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.0.2.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 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