Name | pycamt JSON |
Version |
1.0.1
JSON |
| download |
home_page | https://github.com/ODAncona/pycamt |
Summary | Camt053Parser 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. |
upload_time | 2024-03-31 19:38:10 |
maintainer | None |
docs_url | None |
author | Olivier D'Ancona |
requires_python | <4.0,>=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Pycamt
[![Release](https://img.shields.io/github/v/release/ODAncona/pycamt)](https://img.shields.io/github/v/release/ODAncona/pycamt)
[![Build status](https://img.shields.io/github/actions/workflow/status/ODAncona/pycamt/main.yml?branch=main)](https://github.com/ODAncona/pycamt/actions/workflows/main.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/ODAncona/pycamt/branch/main/graph/badge.svg)](https://codecov.io/gh/ODAncona/pycamt)
[![Commit activity](https://img.shields.io/github/commit-activity/m/ODAncona/pycamt)](https://img.shields.io/github/commit-activity/m/ODAncona/pycamt)
[![License](https://img.shields.io/github/license/ODAncona/pycamt)](https://img.shields.io/github/license/ODAncona/pycamt)
- **Github repository**: <https://github.com/ODAncona/pycamt/>
- **Documentation** <https://ODAncona.github.io/pycamt/>
## 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.](Documentation)
## Installation
To use Camt053Parser, simply copy the Camt053Parser.py file into your project directory, or include it as part of your Python package.
```bash
pip install pycamt
```
## Usage
### Creating an Instance
You can create an instance of the Camt053Parser by providing the XML data as a string:
```python
from Camt053Parser 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:
```python
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:
```python
group_header = parser.get_group_header()
print(group_header)
```
### Extracting Transactions
To retrieve all transaction entries from the file:
```python
transactions = parser.get_transactions()
for transaction in transactions:
print(transaction)
```
### Extracting Statement Information
To get basic statement information like IBAN and opening/closing balance:
```python
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
Specify your chosen license here, providing users with information on how they can use, modify, and share your code.
Raw data
{
"_id": null,
"home_page": "https://github.com/ODAncona/pycamt",
"name": "pycamt",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Olivier D'Ancona",
"author_email": "folivier_dancona@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/a1/c5/54017fa9587cda43812284a51baf8c91ee9d54dcda2097ff4a080e5cb001/pycamt-1.0.1.tar.gz",
"platform": null,
"description": "# Pycamt\n\n[![Release](https://img.shields.io/github/v/release/ODAncona/pycamt)](https://img.shields.io/github/v/release/ODAncona/pycamt)\n[![Build status](https://img.shields.io/github/actions/workflow/status/ODAncona/pycamt/main.yml?branch=main)](https://github.com/ODAncona/pycamt/actions/workflows/main.yml?query=branch%3Amain)\n[![codecov](https://codecov.io/gh/ODAncona/pycamt/branch/main/graph/badge.svg)](https://codecov.io/gh/ODAncona/pycamt)\n[![Commit activity](https://img.shields.io/github/commit-activity/m/ODAncona/pycamt)](https://img.shields.io/github/commit-activity/m/ODAncona/pycamt)\n[![License](https://img.shields.io/github/license/ODAncona/pycamt)](https://img.shields.io/github/license/ODAncona/pycamt)\n\n- **Github repository**: <https://github.com/ODAncona/pycamt/>\n- **Documentation** <https://ODAncona.github.io/pycamt/>\n\n## Overview\n\nPycamt 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.\n\n[https://docs.findock.com/processing-camt-053-files#:~:text=The%20camt.,structured%20MT%20940%20bank%20file.](Documentation)\n\n## Installation\n\nTo use Camt053Parser, simply copy the Camt053Parser.py file into your project directory, or include it as part of your Python package.\n\n```bash\npip install pycamt\n```\n\n## Usage\n\n### Creating an Instance\n\nYou can create an instance of the Camt053Parser by providing the XML data as a string:\n\n```python\nfrom Camt053Parser import Camt053Parser\n\nxml_data = \"<Document>...</Document>\" # Your CAMT.053 XML data as a string\nparser = Camt053Parser(xml_data)\n```\n\nAlternatively, you can initialize the parser with a file path:\n\n```python\nparser = Camt053Parser.from_file('path/to/your/file.xml')\n```\n\n### Extracting Group Header Information\n\nTo extract group header information such as message ID and creation date/time:\n\n```python\ngroup_header = parser.get_group_header()\nprint(group_header)\n```\n\n### Extracting Transactions\n\nTo retrieve all transaction entries from the file:\n\n```python\ntransactions = parser.get_transactions()\nfor transaction in transactions:\n print(transaction)\n```\n\n### Extracting Statement Information\n\nTo get basic statement information like IBAN and opening/closing balance:\n\n```python\nstatement_info = parser.get_statement_info()\nprint(statement_info)\n```\n\n## Contributing\n\nContributions 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.\n\n## Guidelines\n\nFor submitting enhancements or new features, please ensure your code is well-documented and includes relevant docstrings.\nEnsure your contributions are tested to maintain reliability and stability of the parser.\nAdhere to the existing code style for consistency.\nLicense\nSpecify your chosen license here, providing users with information on how they can use, modify, and share your code.\n",
"bugtrack_url": null,
"license": null,
"summary": "Camt053Parser 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.",
"version": "1.0.1",
"project_urls": {
"Documentation": "https://ODAncona.github.io/pycamt/",
"Homepage": "https://github.com/ODAncona/pycamt",
"Repository": "https://github.com/ODAncona/pycamt"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3cf571b75e32f3820e332c5e89760d2386d4d8fbc826c3f8f7123de9d3021ce9",
"md5": "20d02c6cd1e856bfd7edc39ceb092ef5",
"sha256": "68fada177c782c318ea9d67f3a6b40b6d1fdc0cdecd193d9b376f42ec5d72da4"
},
"downloads": -1,
"filename": "pycamt-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "20d02c6cd1e856bfd7edc39ceb092ef5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 5849,
"upload_time": "2024-03-31T19:38:08",
"upload_time_iso_8601": "2024-03-31T19:38:08.739147Z",
"url": "https://files.pythonhosted.org/packages/3c/f5/71b75e32f3820e332c5e89760d2386d4d8fbc826c3f8f7123de9d3021ce9/pycamt-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a1c554017fa9587cda43812284a51baf8c91ee9d54dcda2097ff4a080e5cb001",
"md5": "1ea734df96b0d94b2afdd19e35a93efa",
"sha256": "af2a01096fe4a3adfddeb6fef5bcd8e52c40eaf87036390feaab4417612aabca"
},
"downloads": -1,
"filename": "pycamt-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "1ea734df96b0d94b2afdd19e35a93efa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 5435,
"upload_time": "2024-03-31T19:38:10",
"upload_time_iso_8601": "2024-03-31T19:38:10.242450Z",
"url": "https://files.pythonhosted.org/packages/a1/c5/54017fa9587cda43812284a51baf8c91ee9d54dcda2097ff4a080e5cb001/pycamt-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-31 19:38:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ODAncona",
"github_project": "pycamt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "pycamt"
}