Parse and deduplicate UBS transaction CSV files.
Project description
UBS Transactions CSV Parser
A Python package to parse and process transaction CSV files exported from UBS online banking.
Usage
Install the package with your preferred method.
pip install ubs-transactions-csv-parser
Import the transactions from a CSV file.
from ubs_transactions_csv_parser import AccountExportData
from pathlib import Path
# Parse a CSV file
csv_data = AccountExportData.from_csv(Path("transactions.csv"))
# Access the transactions
for transaction in csv_data.transactions:
# ...
UBS CSV Format
UBS exports transactions in a non-standard CSV format with two sections:
- Metadata section - Account information and period details
- Transactions section - Standard CSV with transaction data
Example format:
Account number:;1234 12345678.12;
IBAN:;CH20 0011 2233 4455 6677 B;
From:;2025-01-01;
Until:;2025-12-31;
Opening balance:;1234.12;
Closing balance:;12345.12;
Valued in:;CHF;
Numbers of transactions in this period:;365;
Trade date;Trade time;Booking date;Value date;Currency;Debit;Credit;Individual amount;Balance;Transaction no.;Description1;Description2;Description3;Footnotes;
2025-01-01;00:11:22;2025-01-01;2025-01-01;CHF;-137.00;;;1370.17;4825794DP1572581029;"John Doe";"Standing order";"Reference details";;
Example jupyter notebook
Check out the example Jupyter notebook for data analysis and visualization examples. Below an example plot of transactions imported from multiple files.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 ubs_transactions_csv_parser-0.2.1.tar.gz.
File metadata
- Download URL: ubs_transactions_csv_parser-0.2.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1e644924f73013a5d1aacf482ba855cf4ca83f6092c835bb8fd3dfcdcb075d2
|
|
| MD5 |
ad61b339e4783de82189b52758c58562
|
|
| BLAKE2b-256 |
bf870a43fb2c825608b1e7d22b82dd99e5dfb2c5ae084ce92ef0f259a8d5492f
|
Provenance
The following attestation bundles were made for ubs_transactions_csv_parser-0.2.1.tar.gz:
Publisher:
python-publish.yml on rito1998/ubs-transactions-csv-parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ubs_transactions_csv_parser-0.2.1.tar.gz -
Subject digest:
b1e644924f73013a5d1aacf482ba855cf4ca83f6092c835bb8fd3dfcdcb075d2 - Sigstore transparency entry: 1154763285
- Sigstore integration time:
-
Permalink:
rito1998/ubs-transactions-csv-parser@1d0a1512cfba593792c0311507c73316d7163580 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/rito1998
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1d0a1512cfba593792c0311507c73316d7163580 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ubs_transactions_csv_parser-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ubs_transactions_csv_parser-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64cc904d6d20fa2625392c27d6586b3b9e5f534fa4234d269edff3754a9ba1e9
|
|
| MD5 |
ba4810187a704534b42bbd25099ca657
|
|
| BLAKE2b-256 |
0114e8b0c88e92870cf9bc1573508e97fc631a39da039cc2ac8b2337b4422cef
|
Provenance
The following attestation bundles were made for ubs_transactions_csv_parser-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on rito1998/ubs-transactions-csv-parser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ubs_transactions_csv_parser-0.2.1-py3-none-any.whl -
Subject digest:
64cc904d6d20fa2625392c27d6586b3b9e5f534fa4234d269edff3754a9ba1e9 - Sigstore transparency entry: 1154763289
- Sigstore integration time:
-
Permalink:
rito1998/ubs-transactions-csv-parser@1d0a1512cfba593792c0311507c73316d7163580 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/rito1998
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1d0a1512cfba593792c0311507c73316d7163580 -
Trigger Event:
release
-
Statement type: