Unofficial Laboral Kutxa Python library
Project description
laboral-kutxa.py
Unofficial Laboral Kutxa Python library
Install
pip install laboral-kutxa
Usage
Reading through the misProductos list:
import os
from laboralkutxa.api import login, get_my_products
username = os.environ.get("USERNAME")
password = os.environ.get("PASSWORD")
login_response = login(username, password)
token = login_response["token"]
products = get_my_products(token)
print(
[
{"alias": product["alias"], "grupo": product["grupo"]}
for product in products["misProductos"]
]
)
Output:
[
{'alias': 'CUENTA 0,0', 'grupo': 'cuentasCorrientes'},
{'alias': 'VISA ELECTRÓN', 'grupo': 'tarjetas'},
{'alias': 'PRESTAMO', 'grupo': 'prestamos'}
]
Accessing the aggregated amounts per account types:
products = get_my_products(token)
current_account = products["_Importes"]["_CuentasCorrientes"]
financing = products["_Importes"]["_Financiacion"]
print({"currentAccount": current_account, "financing": financing})
Output:
{
'currentAccount': {'cantidad': 4440.13, 'moneda': 'EUR'},
'financing': {'cantidad': 174356.48, 'moneda': 'EUR'}
}
CLI
There's also a command line interface available, try with:
laboralkutxa --help
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
laboral-kutxa-0.2.1.tar.gz
(9.9 kB
view details)
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 laboral-kutxa-0.2.1.tar.gz.
File metadata
- Download URL: laboral-kutxa-0.2.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d1614a624a764043ff09162ca2fdbe22073ea3e87242184fabdaa3320c8a86c
|
|
| MD5 |
205fd76bc90f7d3ae24ff1c827f8cfd1
|
|
| BLAKE2b-256 |
db5c717dfc708e9e1aa22ba74bc179bc1e920bdce5b344490ab787ac781b8c55
|
File details
Details for the file laboral_kutxa-0.2.1-py3-none-any.whl.
File metadata
- Download URL: laboral_kutxa-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
518ecabad1445a245ce60a814aad1c918d08396eb2ac7cc597db1fc0f8a7408f
|
|
| MD5 |
c6613ef20c981ca0fdbfb34dbb2fd5a8
|
|
| BLAKE2b-256 |
1f02685e64edcff6c473b645d1bb445b472999d6638aa371eb1b2d094dc76383
|