bankstatementparser-transport-ebics
Builds EBICS 3.0 and 2.5 request envelopes, reads EBICS responses and parses downloaded statements into bankstatementparser transactions.
Contents
Getting started
- Install: PyPI, source
- Requirements: toolchain floor, platforms
- Quick Start: parse a statement you downloaded over EBICS
The bankstatementparser-transport-ebics ecosystem
- The bankstatementparser-transport-ebics ecosystem: the core library, the loaders, writers and servers
Library reference
- Capabilities at a glance: the current surface by theme
- Ecosystem comparison: short matrix; full table at
docs/COMPARISON.md - Benchmarks: headline numbers; full table at
docs/BENCHMARKS.md - Features: the public API
- Configuration:
EbicsConfigandEbicsKeyStore - Examples: runnable example index
Operational
- When not to use bankstatementparser-transport-ebics: limitations
- Development: make targets, fuzzing, CI
- Security: guarantees and compliance
- Documentation: all reference docs
- Stability guarantees: SemVer axis, output stability, minimum toolchain discipline
- License
Install
As a Python library
pip install bankstatementparser-transport-ebics
That installs the package, bankstatementparser >= 0.0.35 and pandas.
| Channel | Command | Notes |
|---|---|---|
| PyPI | pip install bankstatementparser-transport-ebics |
Pulls in bankstatementparser >= 0.0.35 |
| Source | git clone https://github.com/sebastienrousseau/bankstatementparser-transport-ebics && cd bankstatementparser-transport-ebics && poetry install |
For local development |
Verify the installation:
python -c "import bankstatementparser_transport_ebics as e; print(e.__version__)"
# -> 0.0.36
An isolated virtual environment keeps its dependencies apart:
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
python -m pip install -U bankstatementparser-transport-ebics
Requirements
- Python 3.10 or later. CI tests CPython 3.10, 3.11, 3.12, 3.13 and 3.14 on Linux, macOS and Windows;
docs/POLICIES.mdsays when the floor moves. bankstatementparser0.0.35 or later, which parses the statement payloads, and pandas, which it brings.- An EBICS client to talk to your bank, if you need one: this package opens no connection (see When not to use).
Quick Start
from pathlib import Path
from bankstatementparser_transport_ebics import EbicsClient, EbicsConfig, EbicsOrderType
config = EbicsConfig(
host_id="EBICSBNK1",
partner_id="PARTNER99",
user_id="USER01",
url="https://ebics.bank.com/ebics",
version="H005", # EBICS 3.0
)
client = EbicsClient(config)
# Parse a CAMT.053 statement downloaded with another EBICS client
payload = Path("statement.xml").read_bytes()
transactions = client.fetch_statement(
order_type=EbicsOrderType.C53, mock_payload=payload
)
for tx in transactions:
print(f"{tx.booking_date} | {tx.description} | {tx.amount} {tx.currency}")
fetch_statement parses the payload with the core bankstatementparser and returns Transaction objects, debits negative. fetch_and_parse returns the same rows as a pandas DataFrame. The payload is named mock_payload because the package never downloads it itself.
The bankstatementparser-transport-ebics ecosystem
bankstatementparser is a modular suite whose packages ship one version together. This package is its EBICS member; the full table, with every loader, writer and server, is in The suite.
| Component | Purpose | Use case |
|---|---|---|
bankstatementparser |
The parser core: CAMT, pain.001, CSV, OFX, QFX, MT940 and PDF statements | Parsing statements from Python or the CLI |
bankstatementparser-transport-ebics |
EBICS envelopes, responses and statement payloads | Reading what an EBICS download returns |
| Loaders | BAI2, MT942, CFONB, CAMT.054, SEPA and BACS | Formats beyond the core |
| Writers | XLSX, QIF, OFX and SWIFT MT940/MT942 | Exporting parsed transactions |
bankstatementparser-mcp and bankstatementparser-lsp |
Model Context Protocol and Language Server Protocol servers | AI agents and editors |
Capabilities at a glance
| Area | Capability | Status |
|---|---|---|
| Protocol versions | EBICS 3.0 (H005) and EBICS 2.5 (H004) request envelopes |
Shipped |
| Order types | STA (MT940), C53 (CAMT.053), C52 (CAMT.052), C54 (CAMT.054), Z53, INI, HIA, HPB, FDL, FUL |
Shipped as EbicsOrderType |
| Requests | INI/HIA initialisation and download requests with an optional date range |
Shipped |
| Keys | Holds A006, X002 and E002 key values; INI/HIA requests carry a SHA-256 digest of the signature key value |
Shipped |
| Responses | Return code, report text, order and transaction IDs, base64 order data | Shipped |
| Statements | A payload you supply, parsed into Transaction objects or a DataFrame |
Shipped |
| Network transport | Sending requests to the bank | Not implemented |
| Signing and encryption | A006 signatures, X002 authentication, E002 encryption and decryption |
Not implemented |
Ecosystem comparison
The choice is between this package, which handles EBICS data, and a full EBICS client that talks to the bank. Every cell comes from this repository or the other project's PyPI description.
| Project | Talks to the bank | Signing and encryption | Licence |
|---|---|---|---|
| bankstatementparser-transport-ebics | No | No | Apache-2.0 OR MIT |
fintech (joonis) |
Yes | Yes | Free to use but restricted |
See docs/COMPARISON.md for the evidence and complete matrix.
Benchmarks
benches/bench_ebics.py times reading a C53 download response and parsing its CAMT.053 statement as the statement grows. Reading the envelope is linear at about 0.9 ms per MiB; parsing the statement costs a fixed 18 ms or so per call plus about 67 us per entry.
| Scenario | Result | Environment |
|---|---|---|
parse_response, 5,000-entry statement (1.5 MiB) |
1.37 ms | Apple M1 Pro, macOS 27.2.1, CPython 3.12.16 |
fetch_statement, 100 entries |
24.2 ms | Apple M1 Pro, macOS 27.2.1, CPython 3.12.16 |
fetch_statement, 5,000 entries |
350 ms | Apple M1 Pro, macOS 27.2.1, CPython 3.12.16 |
See docs/BENCHMARKS.md for methodology and full results.
Features
The public API, all exported from bankstatementparser_transport_ebics:
EbicsConfig(host_id, partner_id, user_id, url, version="H005"): credentials and endpoint configuration.EbicsKeyStore(signature_key, authentication_key, encryption_key, bank_public_key): key values;get_public_digest()returns the SHA-256 digest of the signature key.EbicsClient(config, key_store=None):build_initialization_request,build_download_request,parse_response,fetch_statement,fetch_and_parse.EbicsResponse:return_code,report_text,order_id,transaction_id,payload,is_segment_completeand theis_successproperty (Trueonly for an explicit000000,011000or011001).EbicsOrderType: the order types listed above.fetch_statement(config, order_type, start_date, end_date, mock_payload): convenience helper returninglist[Transaction].fetch_and_parse(config, order_type, start_date, end_date, mock_payload): convenience helper returning apandas.DataFrame.
The Usage page describes each request and response field.
Configuration
There is no configuration file or environment variable. Everything is passed in code: EbicsConfig carries the host, partner and user IDs, the endpoint URL (stored, never contacted), the protocol version (H005 or H004) and the security medium (default 0000); EbicsKeyStore carries the key values. Without a key store the client uses placeholder key values, so pass your own before you rely on the digest in an INI request.
Examples
examples/ holds two runnable scripts, each run in CI against the fixtures in examples/data/:
| Example | Demonstrates |
|---|---|
01_basic_usage.py |
Building an INI and a C53 request, then reading a C53 download response |
02_advanced_workflow.py |
Parsing that response's CAMT.053 statement into transactions and a DataFrame |
When not to use bankstatementparser-transport-ebics
- You need to talk to your bank. There is no network transport:
EbicsConfig.urlis stored but never contacted, andfetch_statementandfetch_and_parseparse only the payload passed asmock_payload, returning nothing when none is given. - You need signing or encryption. Requests are not signed (
A006), authenticated (X002) or encrypted (E002), and responses are not verified or decrypted. Real order data arrives compressed and encrypted; this package only base64-decodes it. - You need segmented downloads. Multi-part transfers are not reassembled; only
is_segment_completeis reported. - You pass untrusted IDs. Request XML is built by string formatting without escaping.
Use it to build and inspect EBICS envelopes and to parse statements you have already downloaded with another EBICS client; do not use it as the connection to your bank.
Development
git clone https://github.com/sebastienrousseau/bankstatementparser-transport-ebics.git
cd bankstatementparser-transport-ebics
poetry install
make check
make check runs the local gates: ruff lint and format, mypy --strict, Bandit, the complexity baseline (scripts/check_complexity.py), pytest with a 100% line and branch coverage floor, interrogate at 100% docstring coverage, the examples and the README template check. Other targets: make bench, make fuzz (Atheris, 60 s, Linux x86_64 with Python 3.12+), make docs (the MkDocs manual, --strict), make audit (pip-audit on the locked sets) and make demo (re-renders the GIF above with VHS from .github/demo.tape). CI adds the OS by Python matrix, the fuzz job, CodeQL and the Docs Lint gates. CONTRIBUTING.md covers the workflow and commit rules.
Security
- No network, no secrets in transit. The package sends nothing; key values stay in the
EbicsKeyStoreyou build. - Response parsing is substring extraction, not an XML parser: no entity expansion and no external entities.
fuzz/fuzz_parse_response.pyfuzzes it with Atheris in CI and fails on any exception, on a verdict reported for a response with no return code, or on an inconsistent segment flag. - Statement payloads go through a temporary file that is deleted after parsing, and the XML is read by the core
bankstatementparser. - Supply chain. Dependencies are locked in
poetry.lock, CI installs hash-pinned exports of it, andpip-audit, Bandit and CodeQL run on every change. Releases publish to PyPI through OIDC trusted publishing and carry cosign signatures, SLSA provenance and SBOMs; every workflow action is pinned by commit SHA except the SLSA generator, which must be referenced by tag.
Report vulnerabilities according to SECURITY.md.
Documentation
- User manual: sebastienrousseau.com/bankstatementparser-transport-ebics, built from
docs/with MkDocs - API reference: the manual's API page, generated from the docstrings
- Developer docs:
CONTRIBUTING.md,ARCHITECTURE.md,GOVERNANCE.md,SUPPORT.md - The suite:
docs/suite.md, with everybankstatementparserpackage - History:
CHANGELOG.md
Stability guarantees
- Versioning. Releases stay on the
0.0.xline and step by exactly0.0.1, in lockstep with the rest of thebankstatementparsersuite. Under SemVer a0.0.xrelease may break anything; this project names each break in the CHANGELOG instead. - The breaking axis is the output: the XML a request builder emits, the fields
parse_responsereads and how it decides success, and theTransactionrows a statement produces. A change to any of those is called out in the CHANGELOG as breaking, even when no Python signature moves. - Python API. The names exported from
bankstatementparser_transport_ebicskeep their names and fields; names starting with_are internal. - Minimum toolchain. Python 3.10 is the floor; it moves only in a release, for the whole suite at once, with the reason in the CHANGELOG (
docs/POLICIES.md).
License
Dual-licensed under Apache License, Version 2.0 or MIT, at your option (SPDX-License-Identifier: Apache-2.0 OR MIT). Any contribution submitted for inclusion in the work shall be dual-licensed as above, without additional terms or conditions.
Metadata
Release files for bankstatementparser-transport-ebics 0.0.36
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 |
|---|---|---|---|---|
| bankstatementparser_transport_ebics-0.0.36.tar.gz | 20.7 kB | With provenance | Details for bankstatementparser_transport_ebics-0.0.36.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bankstatementparser_transport_ebics-0.0.36-py3-none-any.whl | Python 3 | none | any | Details for bankstatementparser_transport_ebics-0.0.36-py3-none-any.whl |
Total release size: 37.6 kB
Release files / bankstatementparser_transport_ebics-0.0.36.tar.gz
| Download URL | bankstatementparser_transport_ebics-0.0.36.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
279e2104dd9d3fe6de5cd648708be577bd9918d34c613324533cad5d31d65aa3
|
|
BLAKE2b-256 checksum How to use checksums |
427cd59131bf8a21304d21f4a9cefe51192924dc45f333a1ab3241d47b06323c
|
| 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 27, 2026.
Transparency logRelease files / bankstatementparser_transport_ebics-0.0.36-py3-none-any.whl
| Download URL | bankstatementparser_transport_ebics-0.0.36-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4026b6d9b40596c065d814069ce7270fa27bef5650d7bdea9af01afd7c887861
|
|
BLAKE2b-256 checksum How to use checksums |
4781b1aa0aaf358b164a3eca1156c8ce9b3c90b2e2ae9a53f1236fd1e5b742aa
|
| 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 27, 2026.
Transparency logSecurity for bankstatementparser-transport-ebics 0.0.36
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 bankstatementparser_transport_ebics-0.0.36.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 27, 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.