A CLI tool for converting .sta (MT940) files to CSV and merging CSV files.
Project description
sta-converter
sta-converter
is a command-line tool for converting .sta
bank statement files (MT940 format) to CSV format and merging multiple CSVs into one for easier financial analysis and reporting.
Features
- Convert
.sta
files to CSV: Extracts transaction data from.sta
files into structured CSV files. - Batch Processing: Automatically processes all
.sta
files in a given directory. - Merge CSVs: Combines multiple CSV files into a single output file.
Requirements
- Python 3.9+
- Dependencies managed by Poetry
Installation
-
Install Poetry if you haven't already:
curl -sSL https://install.python-poetry.org | python3 -
-
Clone the repository:
git clone https://github.com/bravelab/sta-converter.git cd sta-converter
-
Install the dependencies:
poetry install
Usage
Once installed, you can use the sta-converter
CLI tool to convert .sta
files to CSV and merge the results.
Convert .sta
Files to CSV
To convert .sta
files into CSV files, use the following command:
poetry run sta_converter <input_dir> <output_dir> <merged_output_file>
Example
poetry run sta_converter input output merged_output.csv
-
Install Dependencies:
poetry install
-
Run the CLI:
poetry run sta_converter <input_dir> <output_dir> <merged_output_file>
License
This project is licensed under the MIT License.
Author
Developed by Mariusz Smenżyk. You can reach out to me at mariusz@bravelab.io.
sta-converter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sta_converter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6acb7a34046359e32c961bd28938f72a136a7fe120d5fb0d63901aca301812f5 |
|
MD5 | 2daabef64b6ccc37f0dbc01265a5feb5 |
|
BLAKE2b-256 | 74ff45f79343198786097f32322abf797943cbe8b25bebddc7a11ef69ce4585e |