Skip to main content

No project description provided

Project description

sen-api GitHub

A command-line tool to interact with Servizio Elettrico Nazionale web services.

Features

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.

Installing

From source:

python setup.py install --user

Or in editable mode:

pip install -e ./

From pip:

pip install sen-api

Usage

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

Authentication

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.

Bills

bills example

Readings

readings example

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

sen-api-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sen_api-0.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file sen-api-0.1.1.tar.gz.

File metadata

  • Download URL: sen-api-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for sen-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b3704fe1ff372feacc2485177cfb946c5270e22a5222dba3312db15bdf8eb3c3
MD5 02607bb3392e6a5dfa4d09ee312ea675
BLAKE2b-256 89c150831b5366a5d856972749e3bbaeb7e81e7ad828cca4f989e97b2805961c

See more details on using hashes here.

File details

Details for the file sen_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sen_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for sen_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dcbd24db11987bafcf3af51fa6ba878d5c38a252859fc3d1ea69b72320584b8
MD5 1cb466d99aef7ec6a949001343233067
BLAKE2b-256 a7ff604c471fee76651ac06b606c970a78d6293cf6da15878fe75147a11de1c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page