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
.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.
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> <merged_output_file>
-
Install Dependencies:
poetry install -
Run the CLI:
poetry run sta_converter <input_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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sta_converter-0.1.2.tar.gz.
File metadata
- Download URL: sta_converter-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.18 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19bd36c9ab6d9a1094152ca661bba73e3bf6ba339bff389055d7a30645dfad4f
|
|
| MD5 |
8d047980ae5335082c414d8f8b725d94
|
|
| BLAKE2b-256 |
16956e2d0ddc8dd3b26fa6ac872841adfda620ccaf8bfaaeba29ff1fdbeba8eb
|
File details
Details for the file sta_converter-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sta_converter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.18 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b74cc30cb18c2d4dcf49064f1e11da712ace6834b59955af88d32227ef23f706
|
|
| MD5 |
77785c426fc77ebe20272dc3a691cccb
|
|
| BLAKE2b-256 |
6fe3468305000e4fc48a85ee2b42f4698bf52661c8a96348cfd4a88479ffd5ae
|