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
Metadata
Release files for laboral-kutxa 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laboral-kutxa-0.2.1.tar.gz | 9.9 kB | Without provenance | Details for laboral-kutxa-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laboral_kutxa-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for laboral_kutxa-0.2.1-py3-none-any.whl |
Total release size: 15.5 kB
Release files / laboral-kutxa-0.2.1.tar.gz
| Download URL | laboral-kutxa-0.2.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d1614a624a764043ff09162ca2fdbe22073ea3e87242184fabdaa3320c8a86c
|
|
BLAKE2b-256 checksum How to use checksums |
db5c717dfc708e9e1aa22ba74bc179bc1e920bdce5b344490ab787ac781b8c55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / laboral_kutxa-0.2.1-py3-none-any.whl
| Download URL | laboral_kutxa-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
518ecabad1445a245ce60a814aad1c918d08396eb2ac7cc597db1fc0f8a7408f
|
|
BLAKE2b-256 checksum How to use checksums |
1f02685e64edcff6c473b645d1bb445b472999d6638aa371eb1b2d094dc76383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for laboral-kutxa 0.2.1
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.