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'}
}
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.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file laboral-kutxa-0.1.0.tar.gz
.
File metadata
- Download URL: laboral-kutxa-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fffd11b5c88dc58af5c6b81d4c514cf2ed85af5f9ad6e1dffd448c088a37eb86 |
|
MD5 | dd5d14c969263fbbb607bc9ade941ebb |
|
BLAKE2b-256 | 56356dd46759ccad7e327534fde8743e3ae2ffaf989d468e0e1f4ff419771f81 |
File details
Details for the file laboral_kutxa-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: laboral_kutxa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 | f40d07906c70a439076ad835e8f7ec327e74ef800790762848386835d3ebf349 |
|
MD5 | 125455aa56d29af4ad2f7a41ce2af0b4 |
|
BLAKE2b-256 | d141c833a66710027306c2bab7fd41bc4d0e6fe9472c889cfe5c03cf09bce341 |