Skip to main content

Pycamt

Release Build status codecov Commit activity License

Overview

Pycamt is a flexible and extensible Python class designed to parse CAMT.053 XML files, which are used for bank-to-customer account report messages in the financial industry. The parser supports multiple versions of the CAMT.053 standard, making it a versatile tool for extracting financial transaction data.

https://docs.findock.com/processing-camt-053-files#:~:text=The%20camt.,structured%20MT%20940%20bank%20file.

Installation

To use Camt053Parser, simply copy the Camt053Parser.py file into your project directory, or include it as part of your Python package.

pip install pycamt

Usage

Creating an Instance

You can create an instance of the Camt053Parser by providing the XML data as a string:

from pycamt.parser import Camt053Parser

xml_data = "<Document>...</Document>"  # Your CAMT.053 XML data as a string
parser = Camt053Parser(xml_data)

Alternatively, you can initialize the parser with a file path:

parser = Camt053Parser.from_file('path/to/your/file.xml')

Extracting Group Header Information

To extract group header information such as message ID and creation date/time:

group_header = parser.get_group_header()
print(group_header)

Extracting Transactions

To retrieve all transaction entries from the file:

transactions = parser.get_transactions()
for transaction in transactions:
    print(transaction)

Extracting Statement Information

To get basic statement information like IBAN and opening/closing balance:

statement_info = parser.get_statement_info()
print(statement_info)

Contributing

Contributions to Camt053Parser are welcome! If you have suggestions for improvements or encounter any issues, please feel free to open an issue or submit a pull request.

Guidelines

For submitting enhancements or new features, please ensure your code is well-documented and includes relevant docstrings. Ensure your contributions are tested to maintain reliability and stability of the parser. Adhere to the existing code style for consistency.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for pycamt 1.1.1

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

Source distribution (sdist)

Source distribution for pycamt 1.1.1
File Size Uploaded Provenance Actions
pycamt-1.1.1.tar.gz 126.7 kB Without provenance Details for pycamt-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycamt 1.1.1
File Interpreter ABI Platform Actions
pycamt-1.1.1-py3-none-any.whl Python 3 none any Details for pycamt-1.1.1-py3-none-any.whl

Total release size: 145.4 kB

Release files / pycamt-1.1.1.tar.gz

Download URL pycamt-1.1.1.tar.gz
Size 126.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ac7c40a27ebf11cbcf75109965e943351fbae0748d167d11ef9611520a3cb904
BLAKE2b-256 checksum
How to use checksums
bbdfa0c6e8806b452cf81f27224733e5af6f69ccb43008ecaf7e98ff773dffa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pycamt-1.1.1-py3-none-any.whl

Download URL pycamt-1.1.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa4533179991c0d3e11fd6047b4e5193e2ebea922c50b5fdcf9289aee40e37b3
BLAKE2b-256 checksum
How to use checksums
c2d035a34135390ac4724894c31414ca6a95f0e8c645962072e95cf3b5959da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pycamt 1.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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