Skip to main content

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:

  1. Metadata section - Account information and period details
  2. 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.

img

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

ubs_transactions_csv_parser-0.2.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ubs_transactions_csv_parser-0.2.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file ubs_transactions_csv_parser-0.2.2.tar.gz.

File metadata

File hashes

Hashes for ubs_transactions_csv_parser-0.2.2.tar.gz
Algorithm Hash digest
SHA256 72c43be8617f305e2ba8ce4b9a4f7f8dc98cfc3423b025a1887013d2dbc8d899
MD5 2be0f41ce466675d35de6c0e880b6c09
BLAKE2b-256 e282aac761e7446b5e7d12e1f9d7e7826a758b49b1599e6f43baa6fab5612205

See more details on using hashes here.

Provenance

The following attestation bundles were made for ubs_transactions_csv_parser-0.2.2.tar.gz:

Publisher: python-publish.yml on rito1998/ubs-transactions-csv-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ubs_transactions_csv_parser-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ubs_transactions_csv_parser-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27886669276774810ccfec0fe967fff09dc856c905264476f803248e5b411552
MD5 c7ddfc1ba57cdf634ff9e7a2e5cf2c94
BLAKE2b-256 17d97172a16afc11321997e23804f0c2b72163824bc0d662ce3925fedd9ef896

See more details on using hashes here.

Provenance

The following attestation bundles were made for ubs_transactions_csv_parser-0.2.2-py3-none-any.whl:

Publisher: python-publish.yml on rito1998/ubs-transactions-csv-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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