firefly-reports
Generate 26 financial reports (PDF + Excel) from a Firefly III instance. Designed for individuals, freelancers and small businesses who want a complete annual financial overview.
Quick start
pip install firefly-iii-reports
firefly-reports report \
--url https://your-firefly-instance.example.com \
--year 2025 \
--owner "Your Name" --out ./output
Commands: report (PDF + Excel), export beancount (plain-text ledger), init (config wizard) and demo (sample data, no Firefly III needed). --lang en|it sets the language of the output.
A standalone Windows executable (firefly-reports.exe, no Python needed) is attached to every GitHub Release.
To run from source instead, clone the repo and use python -m firefly_reports in place of firefly-reports (dependencies: pip install -r firefly_reports/requirements.txt). Python 3.11 or newer.
The 1.x form without a subcommand (
firefly-reports --year 2025 ...) still works until 3.0.0 and prints the equivalentreportcommand.
Use --year YYYY for a full calendar year (all reports), or --start/--end for a custom date range — in date-range mode the year-only reports (YoY, Historical Growth, Liquidity Forecast) are skipped.
The token can be provided via --token, the FIREFLY_TOKEN environment variable, a .env file, a firefly-reports.toml config file, or an interactive prompt.
Reports generated
Standard (always generated)
| # | Report | Description |
|---|---|---|
| 1 | Cash Flow Statement | Income/expense by category with monthly breakdown |
| 2 | Income vs Expense | Summary with savings rate and budget breakdown |
| 3 | Transaction Register | Chronological list with running balance |
| 4 | Net Worth | Assets grouped by account type |
| 5 | Account Statements | Per-account transaction statement |
| 6 | Tax Summary | Cash-basis income and deductible expenses |
| 7 | Expense Trend | Category × month expense matrix |
| 8 | Tagged Report | Transactions filtered by tag (--tags) |
| 9 | Budget vs Actual | Planned vs real spend with pace status |
| 10 | Bills & Subscriptions | Recurring payments with status |
| 11 | Savings Goals | Piggy bank progress |
| 12 | Liabilities | Debt summary with period movement |
| 13 | KPI Scorecard | Burn rate, cash runway, savings rate, HHI |
| 14 | Year-over-Year | Income and expense comparison vs prior year (--year mode only) |
| 15 | Cumulative Cash Flow | Monthly cumulative series |
| 16 | Income by Client | Income breakdown per client (revenue source) |
Strategic (non-legacy mode)
| # | Report | Description |
|---|---|---|
| 18 | Budget Performance Forecast | Month-end projection from current velocity |
| 19 | Category Ledger | Transactions grouped by category |
| 20 | Payee Ledger | Transactions grouped by payee |
| 21 | Linkage & Reimbursement Report | Linked pairs with link type and linked-amount % |
| 22 | All Tags Ledger | Transactions grouped by tag (--all-tags) |
| 23 | Historical Growth | Multi-year income/expense comparison (--years, --year mode only) |
| 24 | Liquidity Forecast | 6-month projected balance (--year mode only) |
| 25 | General Journal | Chronological double-entry register with protocol numbers and daily totals (Libro Giornale) |
| 26 | Summary | Firefly instance info (version, API, OS, PHP, user), global counts and period statistics |
Report 17 — Transaction Audit Log (
audit_log_<period>.pdf) is now generated only when--legacy-reportis active. The Summary report takes its slot in standard mode.
Dashboards
Two one-page views are produced alongside the reports: an income/expense dashboard and a KPI trend dashboard.
Beancount / Fava export
Export every transaction to a Beancount v3 ledger for Fava:
pip install "firefly-iii-reports[beancount]" # optional, only for --validate
# Pass 1: draft the account mapping (writes no ledger file), then review beancount_map.yaml
firefly-reports export beancount --scaffold
# Pass 2: export (accounts.beancount + one firefly-YYYY.beancount per year)
firefly-reports export beancount --init --validate
fava ledger/main.beancount
Re-run the second command whenever you want fresh data (only changed files are rewritten);
--scaffold again lists accounts that are new since you reviewed the mapping. --layout single writes a
single firefly.beancount instead (and allows --start/--end).
Example beancount_map.yaml:
accounts: # Firefly account (name or id) -> Beancount account
"Checking Account": "Assets:Bank:Main:Checking"
investment_accounts: # -> Assets:Investments:<Broker>:Cash
"Acme Investments": "Acme"
fallback:
expense: "Expenses:Uncategorized"
income: "Income:Uncategorized"
operating_currency: [EUR]
commodities: [EUR, USD]
Recommended layout: main.beancount (options + includes, yours) · accounts.beancount and firefly-YYYY.beancount
(generated, replaced atomically, closed years never change) · investments.beancount (securities, hand-written) ·
prices.beancount.
--dry-run prints to stdout, --no-timestamp gives byte-identical reruns, --lang en|it translates metadata and
messages. Full user guide (options, mapping reference, worked example, Fava queries, troubleshooting): Beancount Export. Internals and how to add hledger/ledger: Ledger Architecture.
Demo (no Firefly III required)
firefly-reports demo --out ./output --year 2025 --lang en
Config file
firefly-reports init # interactive wizard — creates firefly-reports.toml
Settings resolve in this order: command line, firefly-reports.toml, environment (FIREFLY_*, .env), default. The token is never read from a file you commit: use --token, FIREFLY_TOKEN or the prompt.
TLS and untrusted CAs
Before sending your token, firefly-reports checks the certificate chain of your Firefly III server
against a built-in list of compromised CA keys (for example the eMudhra keys of October 2026) and refuses
to connect if it finds one. A few CAs under review only produce a warning. --trust-insecure-ssl
(report and export, command line only) turns certificate verification off altogether; use it only
for a server you control. Details: Troubleshooting.
Documentation
Full documentation is on the GitHub Wiki:
- Installation & Quick Start
- Configuration — all CLI flags, TOML keys, env vars
- Reports Reference — all 26 reports
- Beancount Export
- Troubleshooting
- Architecture · Ledger Architecture
Development
pip install -e ".[dev]"
pre-commit install
python -m pytest tests -q
Agent and contributor guidance (architecture, layering rules, TLS trust lists, publishing hygiene) lives in AGENTS.md. See CONTRIBUTING.md and the Developer Guide on the wiki.
License
GPL v3 — see LICENSE.
Metadata
Release files for firefly-iii-reports 2.0.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 |
|---|---|---|---|---|
| firefly_iii_reports-2.0.0.tar.gz | 232.0 kB | With provenance | Details for firefly_iii_reports-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| firefly_iii_reports-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for firefly_iii_reports-2.0.0-py3-none-any.whl |
Total release size: 487.1 kB
Release files / firefly_iii_reports-2.0.0.tar.gz
| Download URL | firefly_iii_reports-2.0.0.tar.gz |
|---|---|
| Size | 232.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
749eab22d23f9034e22b97d9dedf024977c4e850d2752ef58312a9542ebdec0e
|
|
BLAKE2b-256 checksum How to use checksums |
5a57c8f14e37e992ce92bca45d508c34ce3fe0c02cdae9e80d33c091b790d614
|
| 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 Oct 29, 2026.
Transparency logRelease files / firefly_iii_reports-2.0.0-py3-none-any.whl
| Download URL | firefly_iii_reports-2.0.0-py3-none-any.whl |
|---|---|
| Size | 255.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b38a5911bd2cfce618ea9f943e08da170c3120dcab933be8e8d3b2fb229ee5c0
|
|
BLAKE2b-256 checksum How to use checksums |
6269b89588c710e6289def45122a81a77f1e25ea1f3d2fb4cfb7d4b928a1d16b
|
| 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 Oct 29, 2026.
Transparency logSecurity for firefly-iii-reports 2.0.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 firefly_iii_reports-2.0.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 Oct 29, 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.