Skip to main content

💸 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

Metadata

Release files for viseca 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viseca 0.1.2
File Size Uploaded Provenance Actions
viseca-0.1.2.tar.gz 91.0 kB Without provenance Details for viseca-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for viseca 0.1.2
File Interpreter ABI Platform Actions
viseca-0.1.2-py3-none-any.whl Python 3 none any Details for viseca-0.1.2-py3-none-any.whl

Total release size: 101.1 kB

Release files / viseca-0.1.2.tar.gz

Download URL viseca-0.1.2.tar.gz
Size 91.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a79a0ab18da96870dcbe3fd4e50cfd5df0c1e7351c5cefd3895243eda1772b6
BLAKE2b-256 checksum
How to use checksums
271e094e9d396fbd143dc3124af275b2d2a3458e15771143d8b672ad1fabb9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / viseca-0.1.2-py3-none-any.whl

Download URL viseca-0.1.2-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dd208e7aecede5134107e2c3dbde86a4195ee64f2620e0be954b7bf4c8d9189
BLAKE2b-256 checksum
How to use checksums
1b6c2fc1e156deec2152a2cd43ee568185610edf45349a78d7e37e37c63432bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Security for viseca 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page