Skip to main content

A package to talk to the VattenFall InCharge API's

Project description

codecov

Vattenfall InCharge

Python implementation of the Vattenfall InCharge API

Usage

from incharge.api import InCharge

api = InCharge(<username>, <password>)

#Get a list of stations
stations = api.get_stations().json()
print(stations)

#Get total consumption data for one station 
data = api.get_station_consumption(<station_name>).json()
print(data[0]['total'])

Description

This package currently supports

api.get_stations() Get list of stations.

api.get_station_consumption(station_name, since_date) Get consumption of a single station based on its name.

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

incharge-1.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

incharge-1.0.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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