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.2.tar.gz (9.1 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.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sen-api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80743e81ae55723a351c89b28e84798b86656428601e7b3a97a61d835fe579c1
MD5 143e161f3524ed80ad96147ceb41a078
BLAKE2b-256 3a04522b8c1e2e7c89fba887f5f015e3560318954f38eee3081b78065add4e52

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sen_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91ef4520d4699e9e4689a32e0bfd6740f3c76d5784f9a07a8509938bf5d88f26
MD5 b4e57765fd77d5c9c5f2ceb608b136a0
BLAKE2b-256 236fa3880df92b9ddd47ced7b37ad6b35fe44c5f54deceb85149262ff8a79a85

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