Skip to main content

Fetch transactions from Viseca One

Project description

💸 viseca

A python package to easily fetch transactions from the Viseca One app

With pip:

>>> pip install viseca

With uv:

>>> uv add viseca

Usage

This method processes the auth flow in the CLI and will trigger a 2FA request like the login in a browser would.

  1. Log in to one.viseca.ch and navigate to "Transactions"

  2. Retrive your "card ID": it can be found in the url for instance as https://one.viseca.ch/de/karte/MY_CARD_ID or https://one.viseca.ch/de/transaktionen/MY_CARD_ID.

  3. Store your username, password and card ID in a new .env file at the root.

    $ cp .env.example .env
    
    >>> VISECA_USERNAME=YOUR_MAIL
    >>> VISECA_PASSWORD=YOUR_PASSWORD
    >>> VISECA_CARD_ID=YOUR_CARD_ID
    
  4. Fetch transactions (and save them to a file)

    • Either using python:
    from viseca import VisecaClient, format_transactions
    
    client = VisecaClient()
    txs = client.list_transactions()
    df = format_transactions(txs)
    df.to_csv("transactions.csv")
    
    • Or via the CLI:
    # With uv:
    uv run viseca/transactions --file my_transactions.csv
    # With python
    python run viseca/transactions.csv --file my_transactions.csv
    

Locally

We provide commands as an alternative to the python api, e.g. for fetching transactions and saving them to a file:

uv run viseca/transactions.py --file transactions.csv

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

viseca-0.1.2.tar.gz (91.0 kB view details)

Uploaded Source

Built Distribution

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

viseca-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file viseca-0.1.2.tar.gz.

File metadata

  • Download URL: viseca-0.1.2.tar.gz
  • Upload date:
  • Size: 91.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for viseca-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3a79a0ab18da96870dcbe3fd4e50cfd5df0c1e7351c5cefd3895243eda1772b6
MD5 7d7743c0bf9023eaf888e4ba2fc019e2
BLAKE2b-256 271e094e9d396fbd143dc3124af275b2d2a3458e15771143d8b672ad1fabb9bd

See more details on using hashes here.

File details

Details for the file viseca-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: viseca-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for viseca-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1dd208e7aecede5134107e2c3dbde86a4195ee64f2620e0be954b7bf4c8d9189
MD5 3d8368c2116bd3c1856656358521149e
BLAKE2b-256 1b6c2fc1e156deec2152a2cd43ee568185610edf45349a78d7e37e37c63432bd

See more details on using hashes here.

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