Skip to content

Latest commit

 

History

History
254 lines (186 loc) · 8.97 KB

getting-started.md

File metadata and controls

254 lines (186 loc) · 8.97 KB
author banner_alt banner_height banner_width banner cdn changefreq charset cname copyright date description download format-detection hreflang icon id image_alt image_height image_width image keywords language layout locale logo_alt logo_height logo_width logo menu measurementID name permalink rating referrer revisit-after robots short_name subtitle tags theme_color title url viewport atom_link category docs generator item_description item_guid item_link item_pub_date item_title last_build_date managing_editor pub_date ttl type webmaster apple_mobile_web_app_orientations apple_touch_icon_sizes apple-mobile-web-app-capable apple-mobile-web-app-status-bar-inset apple-mobile-web-app-status-bar-style apple-mobile-web-app-title apple-touch-fullscreen msapplication-config msapplication-tap-highlight msapplication-TileColor msapplication_tile_image twitter_card twitter_creator twitter_description twitter_image twitter_image_alt twitter_site twitter_title twitter_url author_website author_twitter author_location thanks site_last_updated site_standards site_components site_software
Sebastien Rousseau
A white building with black windows
100vh
100vw
weekly
utf-8
© 2023 Bank Statement Parser. All rights reserved.
Nov 12, 2023
Welcome to the Bank Statement Parser User Guide. Get started with our Python library for easy CAMT and SEPA file parsing and streamline your financial analysis.
telephone=no
en
Logo of Bank Statement Parser, a powerful Python tool designed for quick, accurate financial data processing and insights extraction.
100vh
100vw
bank statement parser, financial analysis, CAMT, SEPA, parsing, automation, efficiency, accuracy, decision-making, workflow
en-GB
start
en_GB
Logo of Bank Statement Parser, a powerful Python tool designed for quick, accurate financial data processing and insights extraction.
44
44
active
G-FL9DEBFHN1
Getting Started
general
no-referrer
7 days
index, follow
bankstatementparser
Start Building Secure Applications with Bank Statement Parser
bank, statement, parser, finance, analysis, CAMT, SEPA, automation, decision, workflow
rgb(73, 214, 251)
Bank Statement Parser: Installation Prerequisites
width=device-width, initial-scale=1, shrink-to-fit=no
Software, Static Site Generator, Rust
Shokunin 🦀 (version 0.0.20)
Welcome to the Bank Statement Parser User Guide. Get started with our Python library for easy CAMT and SEPA file parsing and streamline your financial analysis.
2023-11-12T18:21:18+00:00
Bank Statement Parser: Installation Prerequisites
2023-11-12T18:21:18+00:00
2023-11-12T18:21:18+00:00
60
website
portrait
192x192
yes
black
black-translucent
Bank Statement Parser: Installation Prerequisites
yes
no
rgb(73, 214, 251)
summary
@wwdseb
Welcome to the Bank Statement Parser User Guide. Get started with our Python library for easy CAMT and SEPA file parsing and streamline your financial analysis.
Logo of Bank Statement Parser, a powerful Python tool designed for quick, accurate financial data processing and insights extraction.
@wwdseb
Bank Statement Parser: Installation Prerequisites
@wwdseb
London, UK
Thanks for reading!
2023-10-25
HTML5, CSS3, RSS, Atom, JSON, XML, YAML, Markdown, TOML
Shokunin SSG, Shokunin CLI, Shokunin Templates, Shokunin Themes, Kaishi SSG, Kaishi CLI, Kaishi Templates, Kaishi Themes
Shokunin, Rust

Bank Statement Parser:  Setup and Usage Guide.class="img-fluid fade-in p-3"

System Requirements

Before beginning, ensure your system meets the following criteria:

  • Python 3.6 or newer installed.
  • Command-line interface (CLI) access, such as Terminal or Command Prompt.

Installation

Create a Virtual Environment

We 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.

Bank Statement Parser: Installation Prerequisites.class="w-25 fade-in py-0 px-3 float-start"

python3 -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Installing the Bank Statement Parser

Install bankstatementparser with just one command:

pip install bankstatementparser

Installing Dependencies

Open your CLI and navigate to the library's directory, then execute the following:

pip install -r requirements.txt

divider.class="m-10 w-100"

Get the Source Code on GitHub

You can access the source code for the Bank Statement Parser by downloading releases, browsing or even contributing to its development on GitHub ⧉. You can also report issues and request new features, which we will review and address as soon as possible.

divider.class="m-10 w-100"

Usage

CAMT Files

Bank Statement Parser:  Usage.class="w-25 fade-in py-2 px-3 float-end"

from bankstatementparser import CamtParser

# Initialize the parser with the CAMT file path
camt_parser = CamtParser('path/to/camt/file.xml')

# Parse the file and get the results
results = camt_parser.parse()

PAIN.001 Files

from bankstatementparser import Pain001Parser

# Initialize the parser with the PAIN.001 file path
pain_parser = Pain001Parser('path/to/pain/file.xml')

# Parse the file and get the results
results = pain_parser.parse()

divider.class="m-10 w-100"

Command Line Interface (CLI) Guide

Leverage the CLI for quick parsing tasks with the following commands:

Basic Command

python cli.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 Files

  1. Parse a CAMT file and print the results to the console:

    python cli.py --type camt --input path/to/camt/camt_file.xml

    Using the test data:

    python ./bankstatementparser/cli.py --type camt --input ./tests/test_data/camt.053.001.02.xml
  2. Parse a CAMT file and save the results to a CSV file:

    python cli.py --type camt --input path/to/camt/file.xml --output path/to/output/file.csv

    Using the test data:

    python ./bankstatementparser/cli.py --type camt --input ./tests/test_data/camt.053.001.02.xml --output ./tests/test_data/camt_file.csv

Examples for PAIN.001 Files

  1. Parse a PAIN.001.001.03 file and print the results to the console:
python cli.py --type pain001 --input path/to/pain.001.001.03.xml

Using the test data:

python ./bankstatementparser/cli.py --type pain001 --input ./tests/test_data/pain.001.001.03.xml
  1. Parse a PAIN.001.001.03 file and save the results to a CSV file:
python cli.py --type pain001 --input path/to/pain.001.001.03.xml --output path/to/output/file.csv

Using the test data:

python ./bankstatementparser/cli.py --type pain001 --input ./tests/test_data/pain.001.001.03.xml --output ./tests/test_data/pain_file.csv