Skip to main content

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

  1. Install Poetry if you haven't already:

    curl -sSL https://install.python-poetry.org | python3 -
    
  2. Clone the repository:

    git clone https://github.com/bravelab/sta-converter.git
    cd sta-converter
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sta_converter-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

sta_converter-0.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page