Skip to main content

bankstatementparser-loader-camt054 logo

bankstatementparser-loader-camt054

ISO 20022 CAMT.054 Bank-to-Customer Debit/Credit Notification loader plugin for bankstatementparser.

Tests PyPI version Python versions PyPI downloads License: Apache-2.0 OR MIT


Contents


What is bankstatementparser-loader-camt054?

CAMT.054 (Bank-to-Customer Debit/Credit Notification) is the ISO 20022 XML standard used by global banks and corporate treasuries for real-time transaction reporting and intraday movement feeds.

bankstatementparser-loader-camt054 provides full schema support for ingesting CAMT.054 XML feeds into unified bankstatementparser Transaction objects and pandas.DataFrame tables.

Concern How this loader handles it
Schema Versions Supports camt.054.001.02, camt.054.001.04, camt.054.001.08, and generic variants
Stream Extraction Parses multi-notification files (<Ntfctn>), entry batches (<Ntry>), and sub-item transaction details (<TxDtls>)
References Extracts EndToEndId, InstructionId, AccountServicerReference, MandateId, and unstructured remittance
Account Resolution Automatically identifies IBAN, BBAN, or Proprietary Account Identifiers
Amounts Exact Decimal amounts signed according to <CdtDbtInd> (CRDT vs DBIT)

Install

Channel Command Notes
PyPI pip install bankstatementparser-loader-camt054 Pulls in bankstatementparser >= 0.0.34
Source git clone https://github.com/sebastienrousseau/bankstatementparser-loader-camt054 && cd bankstatementparser-loader-camt054 && poetry install For local development

Requires Python 3.10 or later. Compatible with macOS, Linux, and Windows.

Using an isolated virtual environment (recommended)
python -m venv venv
source venv/bin/activate        # macOS/Linux
venv\Scripts\activate           # Windows
python -m pip install -U bankstatementparser-loader-camt054

Quick start

from bankstatementparser_loader_camt054 import load_camt054_file, summarize_camt054

# Ingest notification XML stream into Transaction models
transactions = load_camt054_file("notification.xml")
for tx in transactions:
    print(f"{tx.booking_date} | {tx.description} | {tx.amount} {tx.currency}")

# Extract batch metadata and notification summary
summary = summarize_camt054(open("notification.xml").read())
print(f"Message ID: {summary.message_id}")
print(
    f"Total Entries: {summary.entry_count} | Credit: {summary.total_credit} | Debit: {summary.total_debit}"
)

Public API

  • load_camt054(xml_data: str | bytes) -> list[Transaction]: Ingests CAMT.054 XML and returns standardized Transaction models.
  • load_camt054_file(file_path: str | Path) -> list[Transaction]: Loads and parses a local CAMT.054 XML file.
  • summarize_camt054(xml_data: str | bytes) -> Camt054NotificationSummary: Returns message ID, notification counts, debits, and credits.
  • Camt054StatementParser: Main parser class implementing parse() and to_transactions().

Supported ISO 20022 Schemas

  • urn:iso:std:iso:20022:tech:xsd:camt.054.001.02
  • urn:iso:std:iso:20022:tech:xsd:camt.054.001.04
  • urn:iso:std:iso:20022:tech:xsd:camt.054.001.08
  • Generic XML structures with standard <BkToCstmrDbtCdtNtfctn> elements

Development

The project enforces strict code-quality gates: 100% test and branch coverage, strict type annotations (mypy), style linting (ruff), docstring coverage (interrogate), and security scanning (bandit).

# Run test suite with branch coverage enforcement
poetry run pytest

# Type checking and linting
poetry run mypy .
poetry run ruff check .
poetry run ruff format --check .

# Documentation and security gates
poetry run interrogate -v
poetry run bandit -r . -c pyproject.toml

Ecosystem

bankstatementparser is part of a modular financial ecosystem. Optional companion packages provide specialized loaders, writers, AI agents, language servers, and transport protocol adapters:

Package GitHub Repository PyPI Role Description
bankstatementparser sebastienrousseau/bankstatementparser PyPI Core Engine Unified parser for CAMT (052/053), PAIN.001, CSV, OFX, QFX, MT940, and PDF statements
bankstatementparser-mcp sebastienrousseau/bankstatementparser-mcp PyPI AI Protocol Model Context Protocol (MCP) server exposing statement tools to LLMs & AI agents
bankstatementparser-lsp sebastienrousseau/bankstatementparser-lsp PyPI Developer Tooling Language Server Protocol (LSP) with live SWIFT MT940 statement validation & diagnostics
bankstatementparser-transport-ebics sebastienrousseau/bankstatementparser-transport-ebics PyPI Transport Automated bank statement retrieval over EBICS 3.0 (H005) and 2.5 (H004) protocols
bankstatementparser-writer-xlsx sebastienrousseau/bankstatementparser-writer-xlsx PyPI Output Writer Formats and exports parsed banking transactions into styled Microsoft Excel (.xlsx) workbooks
bankstatementparser-writer-qif sebastienrousseau/bankstatementparser-writer-qif PyPI Output Writer Serializes transactions into standard Quicken Interchange Format (.qif) exchange files
bankstatementparser-writer-ofx sebastienrousseau/bankstatementparser-writer-ofx PyPI Output Writer Serializes transactions into standard Open Financial Exchange (.ofx) XML/SGML files
bankstatementparser-writer-swift sebastienrousseau/bankstatementparser-writer-swift PyPI Output Writer Exports transactions to SWIFT MT940 customer statements and MT942 interim reports
bankstatementparser-loader-bai2 sebastienrousseau/bankstatementparser-loader-bai2 PyPI Input Loader Parses BAI2 cash-management and account balance statements
bankstatementparser-loader-mt942 sebastienrousseau/bankstatementparser-loader-mt942 PyPI Input Loader Parses SWIFT MT942 interim transaction reports with credit/debit summary reconciliation
bankstatementparser-loader-cfonb sebastienrousseau/bankstatementparser-loader-cfonb PyPI Input Loader Parses French CFONB 120 / AFB120 120-byte fixed-width banking statement files
bankstatementparser-loader-camt054 sebastienrousseau/bankstatementparser-loader-camt054 PyPI Input Loader Ingests ISO 20022 CAMT.054 real-time debit/credit notification stream XML
bankstatementparser-loader-sepa sebastienrousseau/bankstatementparser-loader-sepa PyPI Input Loader Ingests ISO 20022 SEPA PAIN.002 payment status reports and PAIN.008 direct debit mandates
bankstatementparser-loader-bacs sebastienrousseau/bankstatementparser-loader-bacs PyPI Input Loader Parses UK BACS Standard 18 / Faster Payments 106-byte fixed-width transmission files

Contributing

Contributions are welcome! Please submit an issue or pull request on GitHub. Ensure that all quality gates pass and test coverage remains at 100%.


License

This project is dual-licensed under the Apache License 2.0 and the MIT License. See LICENSE-APACHE and LICENSE-MIT for full details.

Metadata

Release files for bankstatementparser-loader-camt054 0.0.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bankstatementparser-loader-camt054 0.0.35
File Size Uploaded Provenance Actions
bankstatementparser_loader_camt054-0.0.35.tar.gz 16.2 kB With provenance Details for bankstatementparser_loader_camt054-0.0.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bankstatementparser-loader-camt054 0.0.35
File Interpreter ABI Platform Actions
bankstatementparser_loader_camt054-0.0.35-py3-none-any.whl Python 3 none any Details for bankstatementparser_loader_camt054-0.0.35-py3-none-any.whl

Total release size: 31.2 kB

Release files / bankstatementparser_loader_camt054-0.0.35.tar.gz

Download URL bankstatementparser_loader_camt054-0.0.35.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
db39a72b687a550c9b6563e9fd81dc7b45cbf123b3eaa1ec67fb67aa2360cbb9
BLAKE2b-256 checksum
How to use checksums
7353656a8f66c6d4fcb8a13c053f95a8ee515e0795388fe82c5c5f039a809f78
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 26, 2026.

Transparency log

Release files / bankstatementparser_loader_camt054-0.0.35-py3-none-any.whl

Download URL bankstatementparser_loader_camt054-0.0.35-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd6ef83de2ec5ad2a04e34554c8b4e6a0696d8d9277b2a322630bd994ba18934
BLAKE2b-256 checksum
How to use checksums
2351112eb82bd4280c531e45bf24d33c3689cef904d3207a3b33f0a8dde0877a
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 26, 2026.

Transparency log

Security for bankstatementparser-loader-camt054 0.0.35

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.

Select from 2 files

Attestation for bankstatementparser_loader_camt054-0.0.35.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 26, 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