Skip to main content

Datadis API client

Project description

Datadis

Python client for https://datadis.es

MIT License Semantic Release PyPI - Downloads Quality Gate Status

Installation

From PyPi

pip install datadis

Usage/Examples

from datadis import get_token, get_supplies

token = get_token('username', 'password')

supplies = 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datadis-0.7.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

datadis-0.7.1-py3-none-any.whl (5.4 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