Changelog¶
All notable changes to bankstatementparser-loader-sepa 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¶
Changed¶
- Require
bankstatementparser >= 0.0.36, the newest core release, and align the version with the suite's 0.0.37 release;poetry.lockmoves core to 0.0.36. - 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.
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¶
Fixed¶
- An amount is read only when it is an ISO 20022 decimal (ASCII
digits with an optional fraction); anything else is
0.00, the existing fallback for text that is not a number. Before,NaNandInfinityreachedTransactionand failed its validation,sNaNescapedload_sepaandsummarize_sepaasdecimal.InvalidOperation, the summary could totalNaNorInfinity, and1e5,1_000, a sign or other scripts' digits were loaded as numbers. - An XML declaration naming an encoding the parser cannot use (an
unknown name, a non-text codec, a multi-byte encoding) raised
LookupError,ValueErrororUnicodeError; it now raisesParseError, the documented error for unreadable XML. Found by the new fuzz target. - The README described fields the loader does not have
(
summary.group_status,accepted_count,rejected_count), group status parsing it does not do, and reason codes stored in references (they are in the description). It now documents the element mapping and the defaults as the code applies them, andtests/test_docs_accuracy.pychecks the Quick Start, the defaults and the two documented errors.
Added¶
- An Atheris fuzz target,
fuzz/fuzz_load_sepa.py, forload_sepaandsummarize_sepa, with a seed corpus; it fails on any exception butParseErroranddefusedxml's refusal, on a malformedTransaction, and on a summary that disagrees with the load. CI runs it for 120 s on every change;make fuzzlocally. benches/bench_load_sepa.py, a real benchmark ofload_sepaandsummarize_sepaon PAIN.008 collections and PAIN.002 reports of 10 to 50,000 transactions, replacing a file that timed an empty loop. CI runs--quick;docs/BENCHMARKS.mdrecords a full run with its environment.tests/fixtures/pain008.xmlandpain002.xml, a collection and its status report, with golden tests.- A
Makefilewrapping the local gates (make check). - A MkDocs Material user manual (
mkdocs.yml,docs/) with an mkdocstrings API reference, built with--stricton every pull request and deployed to GitHub Pages frommain(.github/workflows/docs.yml,make docs). It replaces a Sphinx configuration that nothing built. ARCHITECTURE.md,CODE_OF_CONDUCT.md,docs/POLICIES.md,docs/BENCHMARKS.md,docs/COMPARISON.md,docs/format.mdanddocs/suite.md.- Signed releases: keyless cosign
.sigand.pemper distribution, SLSA provenance (bankstatementparser-loader-sepa-vX.Y.Z.intoto.jsonl, slsa-github-generator 2.1.0), CycloneDX and SPDX SBOMs and a licence manifest on every GitHub release, and PEP 740 attestations on PyPI. - The OpenSSF Scorecard workflow, the suite's Docs Lint workflow
(
scripts/readme-check.shand markdownlint), a Security workflow (Bandit andpip-auditon every locked set), the portfolio pull request and issue templates, and.github/demo.gifrendered bymake demofrom.github/demo.tape. - Hash-pinned requirement sets exported from the lock
(
requirements/{runtime,ci,fuzz,docs}.txt, by the suite'sscripts/export_locked_requirements.py) and compiled release tooling (requirements/{build,sbom}.txt).
Changed¶
- Require
bankstatementparser >= 0.0.35, the newest core release, and align the version with the suite's 0.0.36 release;poetry.lockmoves core to 0.0.35. - Dev tools: ruff 0.17.6, mypy 2.4.1, pytest 9.2.0, hypothesis 6.168.5, tomli 2.5.0 and pytest-benchmark 5.3.1 (Dependabot #4 to #9).
- CI pins every action by commit SHA, installs only the hashed lock exports, and tests CPython 3.10 to 3.14 on Ubuntu, macOS and Windows. Write permissions sit on the jobs that need them.
- The examples load a PAIN.008 collection and its PAIN.002 report, with a rejection, and use the parser plugin.
README.mdfollows the portfolio template. The suite table moves todocs/suite.md.CONTRIBUTING.mddescribes the steps that work in this repository.
[0.0.35] - 2026-11-26¶
The first release on PyPI. Versions 0.0.20 to 0.0.34 were never released: the package joins the bankstatementparser suite, which ships one version across every package, at 0.0.35.
Added¶
.github/workflows/release.yml: av*tag builds the sdist and wheel, publishes them to PyPI by trusted publishing, attaches them to a GitHub release and writes its notes withscripts/release_notes.pyfrom the highlights in.github/releases/<tag>.md..github/workflows/pr.yml(PR Gate) and.github/workflows/suite-consistency.yml, a daily check that every suite package on PyPI agrees on one version (scripts/check_suite_consistency.py).scripts/verify_versions.pyand the suite's sharedtests/test_suite_conformance.pyandtests/test_release_notes.py..github/dependabot.yml: weekly pip and GitHub Actions updates.scripts/check_complexity.py, the suite's complexity gate, withscripts/complexity_baseline.json: per-function ceilings (cyclomatic 10, cognitive 15, Halstead 30, 60 lines; 500 lines per file), run in CI's lint job. Functions already over a ceiling are baselined and may not get worse..github/workflows/codeql.yml: CodeQL as an advanced setup for Python and GitHub Actions, on pushes and pull requests tomainand weekly.
Changed¶
- Breaking:
get_summary()returnstotal_amountasDecimal, as the coreSummaryRecorddeclares, instead offloat. The value is exact, summed from the amounts parsed out of the message text. Code comparing it with a float literal must compare with aDecimalinstead:Decimal("89.90") == 89.90isFalse. - Requires
bankstatementparser >= 0.0.34(was>= 0.0.18). - PAIN.002 and PAIN.008 transactions find their amount and currency
through one helper,
_find_amount. Behaviour is unchanged; two branches that no input could reach are gone, and both callers are within the suite's complexity ceilings. - The coverage gate measures branches (
--cov-branch); coverage is 100% with branches counted. - Dev dependency floor
pytest >= 9.0.3, the release that fixes PYSEC-2026-1845;tomli(Python < 3.11) andpackagingdeclared for the conformance test. - GitHub Actions:
actions/checkoutv7,actions/setup-pythonv7. _parse_sepa_xmlis split into small helpers so every function is under the complexity ceilings. Output is unchanged, pinned by characterisation tests.
Fixed¶
get_summary()returnsSepaSummaryRecord, aSummaryRecordsubtype, so the override matches the core parser's contract andmypypasses against bankstatementparser 0.0.29.
[0.0.19] - 2026-09-01¶
Added¶
- Initial production release of
bankstatementparser-loader-sepa: ISO 20022 SEPA PAIN.002 Status & PAIN.008 Mandate Loader. - 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
bankstatementparserecosystem.