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.
Metadata
Release files for ubs-transactions-csv-parser 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ubs_transactions_csv_parser-0.2.3.tar.gz | 6.6 kB | With provenance | Details for ubs_transactions_csv_parser-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ubs_transactions_csv_parser-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for ubs_transactions_csv_parser-0.2.3-py3-none-any.whl |
Total release size: 15.3 kB
Release files / ubs_transactions_csv_parser-0.2.3.tar.gz
| Download URL | ubs_transactions_csv_parser-0.2.3.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d114a36717c46b2108cad093b8fa27dceacbb6c4b3d263937cb609e94a7d422
|
|
BLAKE2b-256 checksum How to use checksums |
465834354f830585f7453da3e1ec0e6779f4603d5318d0ddb0065ebe694b9f66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logRelease files / ubs_transactions_csv_parser-0.2.3-py3-none-any.whl
| Download URL | ubs_transactions_csv_parser-0.2.3-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c681e2aa8c821c780d71d5e20a080936167c57bc31744fc09b266159796dcfd9
|
|
BLAKE2b-256 checksum How to use checksums |
4e5d1e5591981cec3fb2172a7937a810ba9ddcdc55d5be0cc5ba12679e75d2bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logSecurity for ubs-transactions-csv-parser 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ubs_transactions_csv_parser-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.