Skip to main content

No project description provided

Project description

sen-api GitHub GitHub Workflow Status

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.

Getting started

Obtaining an account

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.

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.3.tar.gz (9.2 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.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sen-api-0.1.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sen-api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fcc9edf2d1b820c1044a25eab2de2335901e4aa62bc3922655c219c8eaf410ad
MD5 8bf32b91051a1e0e86331463d8fe2ded
BLAKE2b-256 a9246cd4db27a07a10c22e2634a36eddc89414802a46b852d5f0522115d4696f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sen_api-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for sen_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27b2a22c517dfaeb245af6118272d837b64413c422c3d6e50c0dd43fc9821d9b
MD5 38016cccd8d8b2fb06a1ef010c3d76aa
BLAKE2b-256 2cc386a3f21829ea944ebcc992f1547a1544f4f44da2b691f18d6c11d77ee7fa

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