A command-line tool to interact with Servizio Elettrico Nazionale web services.
Currently implemented:
- Bills informations and download in PDF format
- Some client informations
- Consumption readings
- Optional JSON output
Implementing in the future:
- More client informations
- Other stuff (*see below)
*Interacting with SEN web services is a real pain since it's such badly designed so I don't really know if I will keep adding more features.
You can obtain an account to access SEN web services here. Of course, you should have an active electricity supply contract with Servizio Elettrico Nazionale.
From source:
python setup.py install --user
Or in editable mode:
pip install -e ./
From pip:
pip install sen-api
Usage: sen-api [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-v, --verbose Enable verbose logs.
-j, --json Print in JSON format when possible.
--help Show this message and exit.
Commands:
authenticate
bills
client-info
readings
Usage: sen-api authenticate [OPTIONS]
Options:
-u, --username TEXT
-p, --password TEXT
-f, --force Force authentication using saved credentials.
--help Show this message and exit.