Skip to content

Changelog

All notable changes to bankstatementparser-writer-ofx will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.0.37] - 2026-11-28

In lockstep with the suite's 0.0.37 release.

Changed

  • Requires bankstatementparser >= 0.0.36 (was >= 0.0.35), the newest core release on PyPI.
  • CI: four pinned actions move to their latest releases: codeql-action 4.39.5, markdownlint-cli2-action 25.1.0, cosign-installer 4.1.4 and sbom-action 0.24.4.
  • CI: the Security workflow audits every locked requirements set (runtime, dev, docs, fuzz, build and sbom), not only some of them, so an advisory in the release tooling fails CI too.

Fixed

  • The suite consistency check authenticates its GitHub API request with the workflow token, so the shared anonymous rate limit no longer fails it.

[0.0.36] - 2026-11-27

In lockstep with the suite's 0.0.36 release.

Fixed

  • to_ofx raised decimal.InvalidOperation on an amount of "NaN" (or "sNaN", or a NaN Decimal), and wrote "Infinity" as <TRNAMT>Infinity. Any NaN or infinite amount is now written as 0.00, as an unparseable amount already was.
  • An amount too large for 28 significant digits at cent precision (for example "1E+999999999", which the fuzz job found) ran out of memory while being formatted, and a huge int raised OverflowError; both are now written as 0.00.
  • Record dates (<DTPOSTED>, <DTSTART>, <DTEND>) and the currency (<CURDEF>) were written without escaping, so markup or a newline in them opened elements in the document. Every value is now escaped. The new fuzz target found this.

Added

  • fuzz/fuzz_to_ofx.py: an Atheris target for to_ofx, run for two minutes by the CI Fuzz (Atheris) job. It fails on any exception, a lost record, a malformed amount or markup in an element value.
  • benches/bench_to_ofx.py: times to_ofx on Transaction lists, DataFrames and dicts from 10 to 10,000 records, replacing a benchmark that timed an empty loop. CI runs it with --quick.
  • A user manual built with MkDocs Material (mkdocs.yml, docs/), with usage and the full field mapping, architecture, comparison, benchmarks, the supported Python policy and an API reference, deployed to GitHub Pages by .github/workflows/docs.yml. ARCHITECTURE.md, GOVERNANCE.md, SUPPORT.md and CODE_OF_CONDUCT.md are new.
  • A Makefile: make check runs every local gate; bench, fuzz, docs, demo, audit and requirements targets.
  • Hashed requirements/ exports of poetry.lock (scripts/export_locked_requirements.py), installed by every CI job with --require-hashes; CI fails when they drift from the lock.
  • .github/workflows/security.yml: pip-audit on the runtime, dev, docs and fuzz sets on every change and weekly.
  • .github/workflows/scorecard.yml (OpenSSF Scorecard) and .github/workflows/docs-lint.yml (README template check and markdownlint), issue templates and a pull request template.
  • Releases attach cosign signatures (.sig, .pem), SLSA provenance (.intoto.jsonl) and CycloneDX and SPDX SBOMs to the GitHub release.
  • .github/demo.gif, rendered from .github/demo.tape by make demo.

Changed

  • Requires bankstatementparser >= 0.0.35 (was >= 0.0.34), the newest core release on PyPI.
  • to_ofx is split into small helpers; it was over every complexity ceiling (cyclomatic 26, 133 lines) and now none of its parts is, so the complexity baseline shrinks from seven offenders to six.
  • CI tests on ubuntu, macOS and Windows with CPython 3.10 to 3.14 (Linux only before), and every action is pinned by commit SHA except the SLSA generator, which must be referenced by tag.
  • The examples now use the package: Transactions to OFX, and a CSV to OFX round trip on examples/data/statement.csv.
  • The README follows the portfolio template and no longer claims OFX 2.x output, PAYMENT/CHECK/FEE transaction types, or a to_transactions() call on the CSV parser; its API signatures match the code.
  • CONTRIBUTING.md drops the instruction to install a pre-commit hook the repository never had; SECURITY.md adds a private-advisory link and states what the writer does and does not protect.

Removed

  • docs/conf.py and docs/readme.md: a Sphinx configuration nothing installed or built, and a page that only pointed at the README.

[0.0.35] - 2026-11-26

Joins the bankstatementparser suite's lockstep release, from 0.0.19 straight to the suite's version, and is the first release published to PyPI.

Added

  • .github/workflows/release.yml: on a v*.*.* tag, builds the sdist and wheel, checks the tag matches __version__ and that the release highlights and CHANGELOG section exist, publishes to PyPI through trusted publishing, and writes the GitHub release notes with scripts/release_notes.py.
  • .github/workflows/suite-consistency.yml and scripts/check_suite_consistency.py: a daily check that every suite package published on PyPI, and the website, carry the same version.
  • .github/workflows/pr.yml: a single-job PR gate (lint, format, type check, tests, docstring coverage).
  • .github/dependabot.yml: weekly pip and grouped GitHub Actions updates; the repository had none.
  • tests/test_suite_conformance.py, the suite's vendored conformance checks, and scripts/verify_versions.py.
  • scripts/check_complexity.py, the suite's complexity gate, with scripts/complexity_baseline.json: per-function ceilings (cyclomatic 10, cognitive 15, Halstead 30, 60 lines; 500 lines per file), run in CI's lint job. The 7 functions and files already over a ceiling are baselined and may not get worse.
  • .github/workflows/codeql.yml: CodeQL scanning of the workflows and the Python sources as an advanced setup, replacing GitHub's default setup; the Analyze (actions) and Analyze (python) check names are unchanged.

Changed

  • Requires bankstatementparser >= 0.0.34 (was >= 0.0.18); the lock is refreshed, and ruff may now resolve to 0.17.
  • CI moves to actions/checkout@v7 and actions/setup-python@v7.
  • CI runs the examples, and installs the built wheel into a clean virtualenv and imports it.
  • The coverage gate measures branches as well as lines.
  • test_version reads the expected version from pyproject.toml instead of restating it.

Fixed

  • A test now covers _normalize_records dropping an item that is neither a Transaction nor a mapping; the branch was untested.
  • tests/test_concurrency_and_stress.py no longer asserts that 500 concurrent exports finish in under 5 seconds. Runner speed made the Test (Python 3.12) job fail at random (5.39 s on 2026-10-11); the test still checks every result is a complete OFX document.

[0.0.19] - 2026-09-01

Added

  • Initial production release of bankstatementparser-writer-ofx: Open Financial Exchange (OFX) Export Writer.
  • 100% statement and branch test coverage.
  • High-concurrency throughput testing (>10,000 TPS) with sub-second response times.
  • Strict type hints (mypy --strict) and ruff linting.
  • Integration with the core bankstatementparser ecosystem.