Datadis API client
Project description
Datadis
Python client for https://datadis.es
Installation
From PyPi
pip install datadis
Usage/Examples
import asyncio
from datadis import get_token, get_supplies
token = asyncio.run(get_token('username', 'password'))
supplies = asyncio.run(get_supplies(token))
#[
# {
# "address": "home",
# "cups": "1234ABC",
# "postalCode": "1024",
# "province": "madrid",
# "municipality": "madrid",
# "distributor": "Energy",
# "validDateFrom": "2020/09",
# "validDateTo": "2021/09",
# "pointType": 0,
# "distributorCode": "2"
# }
#]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datadis-1.0.0.tar.gz
(4.2 kB
view hashes)