Fetch transactions from Viseca One
Project description
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.
-
Log in to one.viseca.ch and navigate to "Transactions"
-
Retrive your "card ID": it can be found in the url for instance as
https://one.viseca.ch/de/karte/MY_CARD_IDorhttps://one.viseca.ch/de/transaktionen/MY_CARD_ID. -
Store your username, password and card ID in a new
.envfile at the root.$ cp .env.example .env
>>> VISECA_USERNAME=YOUR_MAIL >>> VISECA_PASSWORD=YOUR_PASSWORD >>> VISECA_CARD_ID=YOUR_CARD_ID
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a79a0ab18da96870dcbe3fd4e50cfd5df0c1e7351c5cefd3895243eda1772b6
|
|
| MD5 |
7d7743c0bf9023eaf888e4ba2fc019e2
|
|
| BLAKE2b-256 |
271e094e9d396fbd143dc3124af275b2d2a3458e15771143d8b672ad1fabb9bd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dd208e7aecede5134107e2c3dbde86a4195ee64f2620e0be954b7bf4c8d9189
|
|
| MD5 |
3d8368c2116bd3c1856656358521149e
|
|
| BLAKE2b-256 |
1b6c2fc1e156deec2152a2cd43ee568185610edf45349a78d7e37e37c63432bd
|