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.0.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.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sen-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ea6d1f0bf16e5d2753f56d5c32634a54cacf790a473ee66f00b4154bbdb44f4
MD5 fa8ebd2a84767da3192defa8b18783cd
BLAKE2b-256 a2f7d4c6fa08fa030fe1f275923c7f427b8c457d354bb84476c2a4e6388887c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sen_api-0.1.0-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.0 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for sen_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fbebf3da54038e10974e2420c9ea73f7857925560d789ce5eead4a04e1440b2
MD5 d62a836bd130388d56223ad8c0f99982
BLAKE2b-256 6046f2831148c920303d9b9ca99e2c59878d6f77c35373d6b4bc94827fc3c94e

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