Skip to main content

Fetch transactions from Viseca One

Project description

💸 viseca

Fetch transactions from Viseca One

>>> 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. Obtain the card ID from the path (between /v1/card/ and /transactions) and store it in your .env file. Additionaly, to avoid entering your credentials everytime, feel free to add them to the .env file as well.
    cp .env.example .env
    >>> VISECA_USERNAME=YOUR_MAIL
    >>> VISECA_PASSWORD=YOUR_PASSWORD
    >>> VISECA_CARD_ID=YOUR_CARD_ID
    
  3. Fetch transactions (and save them to a file)
    • Using commands
    uv run viseca/transactions.py --file transactions.csv
    
    • Or the python package
    from viseca import VisecaClient, format_transactions
    
    client = VisecaClient()
    txs = client.list_transactions()
    df = format_transactions(txs)
    df.to_csv("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.1.tar.gz (85.5 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viseca-0.1.1.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for viseca-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c31b1604ac9f543e626732b9831a2602751b21fa9ca04e59d82a42e73303c3ec
MD5 78cb2051dda22c18d1bc1f83b1a08adc
BLAKE2b-256 46accb1c66389fb2c1e35c7d3ce97f98e7b3bc61da2dc8e1d0f0ac0d751bb74f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viseca-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for viseca-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51666f8774930b319938428725c8651f99aed529ca8a45176f51dd820637de8f
MD5 abff019428e3dde81290be579569c1ec
BLAKE2b-256 a012d7ea6408a98051d3eae6b57bd4be0f5622057d6ceea54f3df54841a0b109

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