Package: bankstatementparser
Bank Statement Parser: Automate Your Bank Statement ProcessingThe Bank Statement Parser is a Python library built for Finance and Treasury ProfessionalsOverviewThe Bank Statement Parser is an essential Python library for financial data management. Developed for the busy finance and treasury professional, it simplifies the task of parsing bank statements.This tool simplifies the process of analysing CAMT and SEPA transaction files. Its streamlined design removes cumbersome manual data review and provides you with a concise, accurate report to facilitate further analysis.Bank Statement Parser helps you save time by quickly and accurately processing data, allowing you to focus on your financial insights and decisions. Its reliable precision is powered by Python, making it the smarter, more efficient way to manage bank statements.Key FeaturesVersatile Parsing: Easily handle formats like CAMT (ISO 20022) and beyond.Financial Insights: Unlock detailed analysis with powerful calculation utilities.Simple CLI: Automate and integrate with a straightforward command-line interface.Why Choose the Bank Statement ParserDesigned for Finance: Tailored features for the finance sector's needs.Efficiency at Heart: Transform complex data tasks into simple ones.Community First: Built and enhanced by experts, for experts.FunctionalityCamtParser: Parse CAMT format files with ease.Pain001Parser: Handle SEPA PAIN.001 files effortlessly.InstallationCreate a Virtual EnvironmentWe recommend creating a virtual environment to install the Bank Statement Parser. This will ensure that the package is installed in an isolated environment and will not affect other projects.python3-mvenvvenvsourcevenv/bin/activate# On Windows use `venv\Scripts\activate`Getting StartedInstallbankstatementparserwith just one command:pipinstallbankstatementparserUsageCAMT FilesfrombankstatementparserimportCamtParser# Initialize the parser with the CAMT file pathcamt_parser=CamtParser('path/to/camt/file.xml')# Parse the file and get the resultsresults=camt_parser.parse()PAIN.001 FilesfrombankstatementparserimportPain001Parser# Initialize the parser with the PAIN.001 file pathpain_parser=Pain001Parser('path/to/pain/file.xml')# Parse the file and get the resultsresults=pain_parser.parse()Command Line Interface (CLI) GuideLeverage the CLI for quick parsing tasks:Basic Commandpythoncli.py--type<file_type>--input<input_file>[--output<output_file>]--type: Type of the bank statement file. Currently supported types are "camt" and "pain001".--input: Path to the bank statement file.--output: (Optional) Path to save the parsed data. If not provided, data is printed to the console.Examples for CAMT FilesParse a CAMT file and print the results to the console:pythoncli.py--typecamt--inputpath/to/camt/camt_file.xmlUsing the test data:python./bankstatementparser/cli.py--typecamt--input./tests/test_data/camt.053.001.02.xmlParse a CAMT file and save the results to a CSV file:pythoncli.py--typecamt--inputpath/to/camt/file.xml--outputpath/to/output/file.csvUsing the test data:python./bankstatementparser/cli.py--typecamt--input./tests/test_data/camt.053.001.02.xml--output./tests/test_data/camt_file.csvExamples for PAIN.001 FilesParse a PAIN.001.001.03 file and print the results to the console:pythoncli.py--typepain001--inputpath/to/pain.001.001.03.xmlUsing the test data:python./bankstatementparser/cli.py--typepain001--input./tests/test_data/pain.001.001.03.xmlParse a PAIN.001.001.03 file and save the results to a CSV file:pythoncli.py--typepain001--inputpath/to/pain.001.001.03.xml--outputpath/to/output/file.csvUsing the test data:python./bankstatementparser/cli.py--typepain001--input./tests/test_data/pain.001.001.03.xml--output./tests/test_data/pain_file.csvLicenseThe project is licensed under the terms of both the MIT license and the
Apache License (Version 2.0).Apache License, Version 2.0MIT licenseContributionWe welcome contributions tobankstatementparser. Please see thecontributing instructionsfor more information.Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the
Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.AcknowledgementsWe would like to extend a big thank you to all the awesome contributors
ofbankstatementparserfor their help and support.This repo was inspired bykhorevkp/KK_Tools's innovative use of data
structures and algorithms, and was forked to build upon its foundation. Thank
you toKonstantin Khorev