Metadata-Version: 2.1
Name: incharge
Version: 1.0.0
Summary: A package to talk to the VattenFall InCharge API's
Home-page: https://github.com/tgriek/incharge
Author: Tim van Grieken
Author-email: tgriek@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

[![codecov](https://codecov.io/gh/tgriek/incharge/branch/main/graph/badge.svg?token=SZPKLIUKS2)](https://codecov.io/gh/tgriek/incharge)
# Vattenfall InCharge
Python implemenation of the Vattenfall InCharge API

## Usage

```python
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.
