This project contains the process.py
script, which performs processing of transaction info provided by a bank. Files need to be located in ./data folder. The script will read the files, process the data and save the results in a CSV file.
Output fields:
Account
Transaction date
Transaction amount
Transaction currency
Currency rate (to PLN)
Transaction ID
Transaction title
Currency rate is obtained from the NBP API and references values according to PLN. Reference here.
To use the process.py
script, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/qubrat/mt940.git
- Navigate to the project directory:
cd mt940_to_csv
- Install the required modules:
pip install -r requirements.txt
- Run the
process.py
script:
python process.py
The process.py
script returns results in a csv file results.csv
located in the root folder.