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.
- Convert
.stafiles to CSV: Extracts transaction data from.stafiles into structured CSV files. - Batch Processing: Automatically processes all
.stafiles in a given directory. - Merge CSVs: Combines multiple CSV files into a single output file.
- Python 3.9+
- Dependencies managed by Poetry
-
Install Poetry if you haven't already:
curl -sSL https://install.python-poetry.org | python3 - -
Clone the repository:
git clone https://github.com/musictechlab/sta-converter.git cd sta-converter -
Install the dependencies:
poetry install
Once installed, you can use the sta-converter CLI tool to convert .sta files to CSV and merge the results.
To convert .sta files into CSV files, use the following command:
poetry run sta_converter <input_dir> <merged_output_file>-
Install Dependencies:
poetry install
-
Run the CLI:
poetry run sta_converter <input_dir> <merged_output_file>
This project is licensed under the MIT License.
Developed by Mariusz Smenżyk. You can reach out to me at mariusz.smenzyk@musictechlab.io.